From patchwork Wed Jul 5 13:07:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 9826521 Return-Path: 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 C9A8360317 for ; Wed, 5 Jul 2017 13:25:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C0BEC1FFB9 for ; Wed, 5 Jul 2017 13:25:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B484A284B5; Wed, 5 Jul 2017 13:25:20 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3C0B61FFB9 for ; Wed, 5 Jul 2017 13:25:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=RoeXLIj7GWIi90ADhCO2SQYP16RJqtX47YP8tQzqDvE=; b=QW49+HrVgaAAIFiUL4shEQutBN jSvQeCMVF97xnXfll7sYLCRQ06Q/yYs/DDBkx01U/oJu2Q3msEa/uE7vrVX3D3FGNU1wwrXFS4bN2 Ymp7eyNKx0pvP7n+YkFpXlzQ01/KOhsk3ekl+xBI858PtLCtyZ8Fy3MwN/Hzb2+wHt+xZSzYsxnZY Zu5eLCnJ9qdoJ8ZY8OFn8zxF0xIXqvzH43fHT8ofS6dCTNO/JNBrLFl/DwYvGhOGvvzCljVHprxYS 1Smvu0+h/T3gWyRjfW03DjPTvBlHs52JY74BSeU4fqUUHbDB9GK08yYG+cP6Bsxd4sofz6XcNAPli gOG4EGKw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dSkIx-0000Fv-5g; Wed, 05 Jul 2017 13:25:19 +0000 Received: from bhuna.collabora.co.uk ([46.235.227.227]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dSk2H-0004FE-Gn for linux-arm-kernel@lists.infradead.org; Wed, 05 Jul 2017 13:08:10 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: rperier) with ESMTPSA id 49CF526BF6B From: Romain Perier To: Greg Kroah-Hartman Subject: [PATCH v2 3/6] serial: imx: remove CTSC and CTS handling Date: Wed, 5 Jul 2017 15:07:03 +0200 Message-Id: <20170705130706.10388-4-romain.perier@collabora.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170705130706.10388-1-romain.perier@collabora.com> References: <20170705130706.10388-1-romain.perier@collabora.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170705_060806_134816_6A83E508 X-CRM114-Status: UNSURE ( 7.63 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Romain Perier , Nandor Han , linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Nandor Han CTSC and CTS are not related to DMA and might add disruption in some cases. Signed-off-by: Romain Perier --- drivers/tty/serial/imx.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index 5291b86..dd3ebb4 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -1249,11 +1249,6 @@ static void imx_disable_dma(struct imx_port *sport) imx_stop_rx_dma(sport); imx_stop_tx_dma(sport); - /* clear UCR2 */ - temp = readl(sport->port.membase + UCR2); - temp &= ~(UCR2_CTSC | UCR2_CTS | UCR2_ATEN); - writel(temp, sport->port.membase + UCR2); - imx_setup_ufcr(sport, TXTL_DEFAULT, RXTL_DEFAULT); sport->dma_is_enabled = 0;