From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8EB9BC31E44 for ; Fri, 14 Jun 2019 12:11:57 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 62751208CA for ; Fri, 14 Jun 2019 12:11:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="SReVaBfR"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Q2ObjG3S" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 62751208CA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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=WzN40TZKf8XgFV3imCpsxKONMmjs0kNc4Va2KPKs9zk=; b=SReVaBfR9J0Cx5iYKFx8OFjrwm 4Wu0bnYTAWqtwaoKhJT7GEQfObRy+u//W+tKWMskOVs0/Eun9goUaqHs5P9jFmHWlyO22BRsYaMCq kgtffCW1dLJ+92rpUhPX/2U/rho49q9JyBCSDm2fErW2z81WgyAWuNGkIv9/dNSAYrSXG1KqQfEaw qLwEMMIutzPxK7kavUqWyfbLOzz66U+g2KW4+QGgiG5EE6WYfdElCU8KraEwjM2y4JMlH1aKg6tnS R0vRsXc/OIpn0ZzbB7khuz/inV+906WSslP3tvDBt9QtXMnfCSvhpMAx1sZdcygbfiVEeHTrZcHbG 7WWHGAhg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hbl3j-0002my-DT; Fri, 14 Jun 2019 12:11:55 +0000 Received: from mail-lj1-x241.google.com ([2a00:1450:4864:20::241]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hbl3g-0002m2-NL for linux-arm-kernel@lists.infradead.org; Fri, 14 Jun 2019 12:11:53 +0000 Received: by mail-lj1-x241.google.com with SMTP id s21so2142875lji.8 for ; Fri, 14 Jun 2019 05:11:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KAIoL/2xQexpZm/Cnc+ChufT79edLx8XlNo6sI2uttA=; b=Q2ObjG3Sfe7OqoICYZqCx3s+htycwitu478+JM5YcIB7+HVMZAzHAQzYI+zKwVcGaa deIsef7Va6FD4N2vt7gsDHyy3pQGDWk4OMv6tcWzSm6bJSRjvVShb29qIjOnsYkjAVTo 0mEl5LsUIDF9iTwqxawJ+/dG9/1w0963RUc8mIhvJ7GlJ9TiiaojbSPzHLW348zzHxIF DVuKH9PsQtdDcawd8AJNiNf7B/K/gtBxyaOAdNhlfPI35gipTPjoyHDRecDN0R3wg4iw 1tt73WtrHzBwKbPVc7p9XJiGp7DEPLlO/S4K2KRmfcYoKzpghNs3yL4LqHJ/xvDvQob5 uv4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=KAIoL/2xQexpZm/Cnc+ChufT79edLx8XlNo6sI2uttA=; b=MdVz8lMPdnDNphPbfEzHt+fqH5yjiz6tNcWgViqn4qd1Bc6lamZrpHsYZNOIYz/akY ogWVejXxQqUcfm4NPB4lFKx/nxR+MVuaZSYMRJ9UyinTZapzT5aJKejBgdR8n1MvobFA JmPASrA+uIseM9oVK04ULe6OJVUcBvsM7+sxoIcmKHskBPiQhKzxznNEbw6ZQk4J53qQ kkiFhvE3tr6RowPoTKIbJhi/odwIFC28sndUUMLv58AbkcNm5LJNR7s3tdFPvF2IujNk vHkSiSPkxsjAFJ7/9bTkpfflHX5Wv0gYACgUEG9bOQNqcDWFuwoy1PYkn/6EIYxvUgQf jXuw== X-Gm-Message-State: APjAAAX+gwJy9IJc+QlNgr6xBpGipniJ25QVNvHg2XRJJost4MIHskbD xGjoworfesVbrz86F+dLhr8= X-Google-Smtp-Source: APXvYqyrqJN7FoWGNCrX2uCsCtNC7FthgP3Vanzx9r8KGxWqdMRrUPgSCZxhUEbHHSo3EzI4wm8oqw== X-Received: by 2002:a2e:9d4e:: with SMTP id y14mr22449268ljj.199.1560514310517; Fri, 14 Jun 2019 05:11:50 -0700 (PDT) Received: from osv.localdomain ([89.175.180.246]) by smtp.gmail.com with ESMTPSA id p27sm459683lfh.8.2019.06.14.05.11.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 14 Jun 2019 05:11:49 -0700 (PDT) From: Sergey Organov To: Sascha Hauer Subject: [PATCH RFC 0/7] serial: imx: fix RTS and RTS/CTS handling Date: Fri, 14 Jun 2019 15:11:27 +0300 Message-Id: <1560514294-29111-1-git-send-email-sorganov@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <20190614072801.3187-1-s.hauer@pengutronix.de> References: <20190614072801.3187-1-s.hauer@pengutronix.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190614_051152_785097_17ACE159 X-CRM114-Status: UNSURE ( 9.94 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Pengutronix Kernel Team , NXP Linux Team , linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Dear Sascha, I think these patches deliver simpler end result and are more complete than what you just posted. In particular, the serial: imx: set_mctrl(): correctly restore autoRTS state addresses exactly the issue your patch is about, but in a slightly simpler manner. The patches are not tested yet, so I've put RFC in the header. Just my 2 cents. I can obviously re-roll them on top of your work later, if required. Sergey Organov (7): serial: imx: fix locking in set_termios() serial: imx: set_termios(): factor-out 'ucr2' initial value serial: imx: set_termios(): clarify RTS/CTS bits calculation serial: imx: set_termios(): do not enable autoRTS if RTS is unset serial: imx: set_termios(): preserve RTS state serial: imx: set_mctrl(): correctly restore autoRTS state serial: imx: get rid of imx_uart_rts_auto() drivers/tty/serial/imx.c | 93 ++++++++++++++++++++++++------------------------ 1 file changed, 47 insertions(+), 46 deletions(-) -- 2.10.0.1.g57b01a3 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel