Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752771AbdGENHt (ORCPT ); Wed, 5 Jul 2017 09:07:49 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:59324 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752639AbdGENHr (ORCPT ); Wed, 5 Jul 2017 09:07:47 -0400 From: Romain Perier To: Greg Kroah-Hartman Cc: linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Nandor Han , Romain Perier 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> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 785 Lines: 28 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; -- 1.8.3.1