Received: by 10.192.165.156 with SMTP id m28csp907744imm; Thu, 19 Apr 2018 09:28:01 -0700 (PDT) X-Google-Smtp-Source: AIpwx48hfTlrlrGJNZdSboOCyHYARKGxp3jK0gNf7ZsnwCPxmbA3Kmh05fU8s/XmQhjY/Z2Czo+y X-Received: by 2002:a17:902:8b89:: with SMTP id ay9-v6mr6797195plb.100.1524155281624; Thu, 19 Apr 2018 09:28:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524155281; cv=none; d=google.com; s=arc-20160816; b=S5uWeaNE0UnyRhy7Z5KozC6PlR5TtPWNz8JIEjO/8tVlkkXliP5qwOuUHh8ZyVE6aY dVu8CAvtNSo9qENxaLL5XLJ5+pOy912Er7AAfdAIGnIIxkmz4UT3NwT5w6osAVW3yMf/ PZZa1FtCwyYovdSncLUaZmbYam9ZqR2JbO4gywt5pp811pNxZNPkNVGGndqUWCnYka2l cGBzOgCKm+Y0PFleQICXvIm2QcOSwsUYzmqO8FrB6IoM7prJjE5SBK4g14vOzYf4I1jm SFAg+Tk8+jreOjLy7C6NWyNWFcPloaWOsWIVFW0K4jnQM7LFoJestskxdf754NkYielF af9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=dyvmka5SxAVmtV153HFYixJGbo2QphRExtjfojLdW2E=; b=AuTa76DwzTw5C38BtvjrDQNkriXzdM79gfcvofAccQqomZCgtRCSiW1U03cDFmqAnC jFtLi4/5Fq2JEkOtLIj0SjzCO55CDnALLNd0Lur/GNBwa81Yzk77pipel7hyYRP45UG+ cZRq3qH4U81gwdQOXA6Q37NqEEXozNzQFIAoM57ITQh1j9hf4uCq09y/NLpVnDcM6JWT IcDynJr7EYmeeH9at35JNvfPOqBQxNpFMiUdT5PyAraxWEO2H5Dv3XY97uoHEEevL+09 eXmFOXSwW3phoWG7ra4H4G8DjP6UxR+Cgl9DB7WFlSmUXBVUtUXRglIFLsfPG8H8Vd5u 34aA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q3si3280326pgs.516.2018.04.19.09.27.46; Thu, 19 Apr 2018 09:28:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753975AbeDSQ0X (ORCPT + 99 others); Thu, 19 Apr 2018 12:26:23 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:34749 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753920AbeDSQ0U (ORCPT ); Thu, 19 Apr 2018 12:26:20 -0400 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1f9CNz-0002wx-Bu; Thu, 19 Apr 2018 18:26:15 +0200 Received: from ukl by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1f9CNy-0002s6-Fz; Thu, 19 Apr 2018 18:26:14 +0200 Date: Thu, 19 Apr 2018 18:26:14 +0200 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Stefan Agner Cc: gregkh@linuxfoundation.org, lukas@wunner.de, jslaby@suse.com, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] serial: imx: warn user when using unsupported configuration Message-ID: <20180419162614.erf33d4kwt2clnev@pengutronix.de> References: <20180419153916.21898-1-stefan@agner.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180419153916.21898-1-stefan@agner.ch> User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Stefan, On Thu, Apr 19, 2018 at 05:39:16PM +0200, Stefan Agner wrote: > When using half-duplex mode (which disables receiver during txing) > the RTS signal cannot be driven low during transmission when using > i.MX UART RTS/CTS control. This seems to be a limitation of the > i.MX UART IP: The RTS (CTS_B) signal is controlled by the receiver. > When the receiver is disabled, the signal stays in UART logic idle > state which is high... > > If SER_RS485_RTS_ON_SEND is used, RTS needs to be high active during > transmission. Since this is the default state of the RTS (CTS_B) > signal when the receiver is off, half-duplex mode in this > configuration works fine. > > However, a low-active RTS signal (flag SER_RS485_RTS_ON_SEND not set) > cannot be generated when the receiver is turned off. > > Print an error if the user selects this unsupported configuration > (both SER_RS485_RTS_ON_SEND and SER_RS485_RX_DURING_TX unset) and > configure the closest working configuration (set the > SER_RS485_RX_DURING_TX flag). > > Signed-off-by: Stefan Agner Acked-by: Uwe Kleine-K?nig Thanks Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |