Message ID | 20160719074310.16872-4-bhuvanchandra.dv@toradex.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 182846075D for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 19 Jul 2016 07:47:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0AF072015F for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 19 Jul 2016 07:47:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F36852074F; Tue, 19 Jul 2016 07:47:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A78712015F for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 19 Jul 2016 07:47:11 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bPPih-0007gQ-S1; Tue, 19 Jul 2016 07:45:35 +0000 Received: from mail-ve1eur01on0138.outbound.protection.outlook.com ([104.47.1.138] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bPPi6-0006IE-VL for linux-arm-kernel@lists.infradead.org; Tue, 19 Jul 2016 07:45:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toradex.onmicrosoft.com; s=selector1-toradex-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=qwxrJ6nbxanWkljL767SHIHA/Fki31GzbGy+HJrKSG4=; b=Tj+2qQhSv2qKspt2gr8IniesIz1JDZ04APBqTMvlJOkIwoh6pcFHwCk+HdjR+d5RRpvAP46eBmR/rKg6I2KgO6kUhP7drlhWMTIPraAnkroIQM9PeezAj+R7l/XviUMlAkdeK7WIwnY0NB2zbbUmScbucT4OOKPraf0TyTH2zPg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=bhuvanchandra.dv@toradex.com; Received: from tdx-in-nb-0014.toradex.ext (115.115.243.34) by DB6PR0501MB2087.eurprd05.prod.outlook.com (10.168.9.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.544.10; Tue, 19 Jul 2016 07:44:43 +0000 From: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com> To: <gregkh@linuxfoundation.org> Subject: [PATCH RESEND v2 3/8] tty: serial: fsl_lpuart: fix clearing of receive flag Date: Tue, 19 Jul 2016 13:13:05 +0530 Message-ID: <20160719074310.16872-4-bhuvanchandra.dv@toradex.com> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160719074310.16872-1-bhuvanchandra.dv@toradex.com> References: <20160719074310.16872-1-bhuvanchandra.dv@toradex.com> MIME-Version: 1.0 X-Originating-IP: [115.115.243.34] X-ClientProxiedBy: MA1PR01CA0045.INDPRD01.PROD.OUTLOOK.COM (10.164.116.145) To DB6PR0501MB2087.eurprd05.prod.outlook.com (10.168.9.139) X-MS-Office365-Filtering-Correlation-Id: 0c025f33-7662-4afe-bc43-08d3afa88e08 X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2087; 2:S6RdK628zgjTdJG07HhlVmjFJn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99rzDd/i5oPEx8c X-Microsoft-Antispam-PRVS: <DB6PR0501MB208781AA6A212CC39E9A22D78D370@DB6PR0501MB2087.eurprd05.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046); SRVR:DB6PR0501MB2087; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0501MB2087; X-Forefront-PRVS: 000800954F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(7916002)(199003)(189002)(77096005)(36756003)(42186005)(69596002)(4001430100002)(19580395003)(86362001)(7736002)(19580405001)(47776003)(5003940100001)(2950100001)(92566002)(50466002)(66066001)(76176999)(50986999)(50226002)(4326007)(48376002)(6116002)(3846002)(1076002)(586003)(97736004)(305945005)(68736007)(189998001)(105586002)(8676002)(110136002)(107886002)(53416004)(101416001)(2906002)(2351001)(81156014)(81166006)(229853001)(106356001)(7846002)(33646002)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:DB6PR0501MB2087; H:tdx-in-nb-0014.toradex.ext; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: toradex.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR0501MB2087; 23:VFXZTA+d9SPp7LAigsUVE06J7Fn/jRj7iTW7zpt?= =?us-ascii?Q?Ocu5PX9xOL00Ws6y6Ceig4yo+2ypvfegtRdCga1IuhARuL2o+Kk0nIHAOGE7?= =?us-ascii?Q?ht3R/4MRVCOg1Gj41deT4JyzFDW3+1fROUNMgLE1swN3fe7rQ8iXUjrwAyLY?= =?us-ascii?Q?e0Y0wCFpod8/zxDhc05fetC+DHInHXWlwkMK65O5zny4x6jyGO32mPI47PmK?= =?us-ascii?Q?yOFerIBVZypXy0K0fqKYbkS3b+sefVCzv7GISOt/O3t5o3r14+mDJYYxK/tS?= =?us-ascii?Q?umJM81jJVWKqDgUPRv/cfw04KGVI17ROpMNuEy+eesHH8TxdXiYdL348tu8B?= =?us-ascii?Q?nRFykwgzxyK/Pnp3pCZzzIDHpXmG5eLgApLL1/jkprzrLGV+XC19mizRzvoV?= =?us-ascii?Q?LZUyWniIq3y5R8t3rGffvsC06mnSVYNATbLg6M5gYATN6O1R430aZYgU9hjz?= =?us-ascii?Q?oP1cbirwyfSG+7kWLN4c4op1WQtdZTN0cnncycyxQv4y1KpAkUgUkAQeYrak?= =?us-ascii?Q?QrRUzheM0s6Km+I/RnqdZJNLvGT8S0rkTp97zA0DxIovOWowLja6unfrrmye?= =?us-ascii?Q?vnYLalHKJXWojiu5Ic0Hk5lnACy81k9cJwhBwScJM61bTy/ol6uDdXpmG06J?= =?us-ascii?Q?8RdNIPArXvEK4TssFjsNV2J5NIMw/leO897EDJvvge+iDWPhMn8rbApAUCSp?= =?us-ascii?Q?vOdXuVKe2ksjb+0o/AO9QPOCt07S9OW7S281jDrmssV9NsjCL7HioH/2Xp/1?= =?us-ascii?Q?eNRdPshq5BqHmUUEneU3p5C7JmHykCOjwIFll8BA7UxHf4ziiaxw8SeWUxZJ?= =?us-ascii?Q?tcl/uHaLE2rtQjF8coXbVrKY/Vb0zF/XnnbVZjmM9XHKCYTsPGAA15oJjkz+?= =?us-ascii?Q?8Ag9tEjITvxLhbn5E2wO61iwim6cV8Jw7JfZ3QBi9cPEA61ex4HQ73AAzF/X?= =?us-ascii?Q?yK8r9S9iBcJrvb43rt3gpkbp6e/vtXikaJ1LA6/8LEfZnLkV944XzyAcTQ9U?= =?us-ascii?Q?76lFHAj322xCCeafgXe+SpnDkkwiVKqHk5sktf46FZjCUadKDfOykWp24Rjr?= =?us-ascii?Q?WxeEUvqwavlp7qBbEHNp1x8yq+/iyvuaRlcl+TR99ZzZzMXk006TGDqViHZR?= =?us-ascii?Q?ipmIRZkQpfrnhS//VkINIilV6kfN63Fp56047kjubpR4bLWO8H1F8iUC1Qhh?= =?us-ascii?Q?W3s7Bp7r9kBMxKXQVkDmjZy9l6cfgL+vLyRSE?= X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2087; 6:jHakXuOEaPX2W9Q1OWDLOh9naziYwiaXJ4h/wSFyBZahx7Z7KJVThpe12SuDkXLIpoYuOW0Z7WGL0WJDaNam7/nkqUAWsyxz78E3a52Nno6JK9vHtDTPtZ2HT2MLOTmGJ4Kpo+2Rpuhd7Tk6iLnv8D3wj0nnGNQ74osgvjR4R2PRbrReBq/Yr2mRyVVwV9ba33LJqC3Euy7VdgShhzFP3F19ZwM+mJ1Lvw8vIDGY82Gzc4D0HsIPS8tRKO+b1H3Keqn1W4ayuseZVvtAKoobfAXhLKJlDrcsLUofQpNuB/U=; 5:agTi5w3Shud9R/t4Q76o4/XkpfEppRofbXXG3F14qTQt45+OdlkSGe1xIE9bibsn5V3X1KpKlGJikjd2EGyaPlWXSoNjYIcEyCBa8J5q4a3IeC9x3QoGU/RnZiS7TCMSZ3iq4AzdgWqs7mo4inRUyw==; 24:33Us9+clYqJ8uN2fXwBI+os0wNpPNBBta1Rrplip3ZNcWe33PUYzgj74EndHory8sGwYEdYyNBXJrjV9XRtegFGkHvHYTKtDOnwIC8GbDYI=; 7:budFG0sOHHPrA7gNJfziNoqnE/durOAFH1Q70Io6Ub5PXLuRQCoWnRCUz8WnVqOc9ZV69+bu9ZH02b/InD/KqB+tOsui6pwZ/MAMRCRroPRuV/1WXXM66WYDDQZE06nv432XK3yb55tiupCKIbmBm4CAfJCcT96lW0aGgDFsRVVZyALVepPQhmD+x0oKxGPUF3/4l+cDp8bCUXYx1vqv8WMGTv/o5xnoBZNfcSLVdNrfgIkJo6uwV7HeRLH/kdKu SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2016 07:44:43.8516 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2087 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160719_004459_367442_3C147498 X-CRM114-Status: UNSURE ( 9.21 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-serial@vger.kernel.org, mturquette@baylibre.com, sboyd@codeaurora.org, linux-kernel@vger.kernel.org, stefan@agner.ch, kernel@pengutronix.de, jslaby@suse.com, shawnguo@kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bhuvanchandra DV <bhuvanchandra.dv@toradex.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c index 75a2098..97c1fda 100644 --- a/drivers/tty/serial/fsl_lpuart.c +++ b/drivers/tty/serial/fsl_lpuart.c @@ -935,13 +935,16 @@ static void lpuart_setup_watermark(struct lpuart_port *sport) writeb(val | UARTPFIFO_TXFE | UARTPFIFO_RXFE, sport->port.membase + UARTPFIFO); - /* explicitly clear RDRF */ - readb(sport->port.membase + UARTSR1); - /* flush Tx and Rx FIFO */ writeb(UARTCFIFO_TXFLUSH | UARTCFIFO_RXFLUSH, sport->port.membase + UARTCFIFO); + /* explicitly clear RDRF */ + if (readb(sport->port.membase + UARTSR1) & UARTSR1_RDRF) { + readb(sport->port.membase + UARTDR); + writeb(UARTSFIFO_RXUF, sport->port.membase + UARTSFIFO); + } + writeb(0, sport->port.membase + UARTTWFIFO); writeb(1, sport->port.membase + UARTRWFIFO);