Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3708877ybb; Mon, 23 Mar 2020 06:17:57 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt16BaAvWURT3F2p0AO5uZvVQDJ35ics9vP7lXNrZP7F8LJLnXOlLaNPPbKRrlvsIYgF+aw X-Received: by 2002:a9d:bf5:: with SMTP id 108mr18936230oth.260.1584969477170; Mon, 23 Mar 2020 06:17:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584969477; cv=none; d=google.com; s=arc-20160816; b=Cab9AUyOGUQITnXNBjj8y9cXIo8IvVxIpPG6Sgw59HcE2sSR9OzQt8vEiixLCjl8TO FZGe8a5QMWgTWbNTFz9Tp9cToTvhahC90gP4vGhkYkJv7bg3aJXGIgsYVKd2/IOYqAbY eYEhn58SVs5kMyVB6HGmaM5clV8HJuujwF1rDBKseageQNyi2ev9eNxDAv8twBPSb0En Ucc7PCD+Nu9gTjjgLwiZf9mswEb6DKYxh0mxeisttwtyXGmU8RsI+PBrt5Gg5ajJ/GKT ZnY1zFouv7kciFlIy/5wnGE83ITLkE+aY8jClK9ev9TGuccRSgNdJV4ybr2bPJ8lKScb NySg== 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; bh=i2CMDnfU0i/bemChCfIgY9WxlwMKO6dIQIHvwoq00Jk=; b=toKzDtkeqkuY6bwc4aclunk9Kcob0bGNC2J72D5fM6UhTh0yvyVe0uxfDz5uGPoxWE 3jpaqXb4eJUxfpNdOZBYpB64wf329LsqYMIOXC1iq7DPiZSvejkpQrhBAVWb8VQVUWtK GXpj23DykwVJirZQUrygpMeecBftkH+3mGB3F4RJLUERcT6t6svviJJUuryoq2eho8qS eIxjhB+6agkOra6EvP++idQ5GicceDVebdXID01XIGbmtd2OJRqb4cVQ8mr/z1zqID8+ v9rbtv57KHLepPKTaeIMoglSlLxac5EVlmoWEniWuGBYtvSdchg9isfaNoSgjkxGM3w+ ug9Q== 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 193si7164788oie.51.2020.03.23.06.17.42; Mon, 23 Mar 2020 06:17:57 -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 S1728379AbgCWNRS (ORCPT + 99 others); Mon, 23 Mar 2020 09:17:18 -0400 Received: from bmailout3.hostsharing.net ([176.9.242.62]:53087 "EHLO bmailout3.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728307AbgCWNRR (ORCPT ); Mon, 23 Mar 2020 09:17:17 -0400 Received: from h08.hostsharing.net (h08.hostsharing.net [IPv6:2a01:37:1000::53df:5f1c:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified)) by bmailout3.hostsharing.net (Postfix) with ESMTPS id 6AD1F100EF4DC; Mon, 23 Mar 2020 14:17:15 +0100 (CET) Received: by h08.hostsharing.net (Postfix, from userid 100393) id F291875F0B; Mon, 23 Mar 2020 14:17:14 +0100 (CET) Date: Mon, 23 Mar 2020 14:17:14 +0100 From: Lukas Wunner To: Heiko =?iso-8859-1?Q?St=FCbner?= Cc: Andy Shevchenko , gregkh@linuxfoundation.org, jslaby@suse.com, matwey.kornilov@gmail.com, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/7] serial: 8250: Add rs485 emulation to 8250_dw Message-ID: <20200323131714.vmhjws5xpj6yf536@wunner.de> References: <20200318142640.982763-1-heiko@sntech.de> <5640842.EtOnNDtpGh@diego> <20200319054034.dyq7yydqi6yg7jhf@wunner.de> <6241816.LpgjcNKrfa@diego> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6241816.LpgjcNKrfa@diego> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 23, 2020 at 09:25:57AM +0100, Heiko St?bner wrote: > Am Donnerstag, 19. M?rz 2020, 06:40:34 CET schrieb Lukas Wunner: > > There are some more patches in the pipeline for the next cycle > > to add support for an rs485 bus termination GPIO. They're on > > the tip of this branch: > > > > https://github.com/RevolutionPi/linux/commits/revpi-4.19 > > > > Just so you know in advance and duplicate work is avoided. > > do you plan on submitting these soonish? Because looking at your > termination-gpio change makes me want to do something similar for > my RE-gpio ... instead of trying to mangle this into the DTR thingy. [...] > So I guess having that as rs485-re-gpios property might be the best way. I plan to submit them once the 5.7 merge window closes, I'll probably have to go over them at least one more time to apply some polish. On UARTs capable of disabling and enabling the receiver in software, it's best to leverage that to enable full-duplex or half-duplex mode. However after having a brief look at the DW UART databook, it seems it's not capable of doing that. For such UARTs, a separate GPIO indeed seems like a legitimate approach to allow switching between full-duplex and half-duplex. "rs485-re-gpios" seems a bit cryptic, how about "rs485-rx-enable-gpios" or "rs485-full-duplex-gpios"? Thanks, Lukas