Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4053468pxu; Wed, 9 Dec 2020 07:17:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJwf/dMe8gu4XhkgPs5woOWKJoBgdTCgCILEEEcPpmZpEuarYIPkygemyy1/tz23HuRIv8UI X-Received: by 2002:a17:906:c007:: with SMTP id e7mr2401409ejz.511.1607527055093; Wed, 09 Dec 2020 07:17:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607527055; cv=none; d=google.com; s=arc-20160816; b=w02XxyqlSZ3Z3aQZM+G9RNeIVcRbL4xk8i4dV6AqJnXjvZCbyOSwJpVa0fZM/3zG+z gv+r2vurVTV1U38a+QuGwomLmTTPuItcikKVvLAY8t1uk6OmUedxTKoflccPZlPFbiLg BJS4YZ6Nr9THyAw3wlw7IT8Meow2C1ApQBglbaLebeXUDhSBlUmSzIJI0+fFGnKHaJkU imjmBWwjL2RM6A2QDSCKm68GXbGZxZfTX76LtJwW3WmU/T9hdBEzANLEafgCPG5iQl5U RKV8AAHB7zcidl0wHNuUw5fVs8TtUGJguke9miw4vigdZwjFn5RXqqrmWYev1twp9J7p rP6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=Uh3FUn0V5tUvVW9RwJkH868D/aru/vfcxmPy9ZMAcjw=; b=N2TI72A+cR2u4dQUbjY2ifjLaQ8G9B1WsS0+YsX6R0EpzauKHPsRt2jMN6UTY4EKtW bI1ARNlxCQbvGfZoDyyPitNaH2WRlivkLMJxUVmFro7VYRKBgEeltwm1L6kh10e4ne1n uWbKHC9RYf1IhWczT7hYyzObGxCcMp2vQabiD3XENFUaZbdj9e9NUGroydtjF1KVFS/l WdcKCitsJrlqzc1xOeMVVrh0VcqHWjwXcNOTwFbPF0xBcz4pWK1+AJDl3GhvcK+hXdcD 4CcJNpCu2YEtP3AsXKomVE2j7CflA4S5avX/U0abm5wwMz3pt2gMV0Izj+ppuHaB3kMu B/tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RFTxMXqt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z41si974350ede.411.2020.12.09.07.17.12; Wed, 09 Dec 2020 07:17:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RFTxMXqt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733000AbgLIOaE (ORCPT + 99 others); Wed, 9 Dec 2020 09:30:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:38238 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732852AbgLIO35 (ORCPT ); Wed, 9 Dec 2020 09:29:57 -0500 Date: Wed, 9 Dec 2020 15:30:33 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1607524157; bh=tGb2bsihTlzyOAC5cT78Tgjia37FE/zrr0cFrYwkh+A=; h=From:To:Cc:Subject:References:In-Reply-To:From; b=RFTxMXqtvwtq2lG6Y9UwA7UCRNt/AA7XzOy6nK/WxCqIj+JEUlQ76Ee1KcosDHtCN IUtXCFkQL2MKqiWgc+WCXFPS9brJeRzrrp8/VuHLDXm9nGTm4LtoO84gkGkvWBE0j6 t32Dsd4eZrxthi9J3pmx8oPhf4mRr3+3OaYgLKLE= From: Greg Kroah-Hartman To: Johan Hovold Cc: Jiri Slaby , "Mychaela N . Falconia" , linux-serial@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/7] tty: add flag to suppress ready signalling on open Message-ID: References: <20201202113942.27024-1-johan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201202113942.27024-1-johan@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 02, 2020 at 12:39:35PM +0100, Johan Hovold wrote: > This series adds a new NORDY port flag to suppress raising the > modem-control lines on open to signal DTE readiness. > > This can be used to implement a NORDY termios control flag to complement > HUPCL, which controls lowering of the modem-control lines on final > close. > > Initially drivers can export the flag through sysfs, which also allows > control over the lines on first open. Such an interface is implemented > for serial core and USB serial. > > The motivation for this is to allow for applications where the DTR and > RTS lines are used for non-standard purposes (e.g. generating power-on > and reset pulses) to open the port without undesirable side effects. > > The final patches enables this flag by default for such a USB serial > device. > > Other examples include HAM-radio devices where DTR and RTS is used for > push-to-talk and continuous-wave control and various Arduino boards > which are reset on open unless a jumper is physically removed. > > Greg, are you ok we me taking this through my tree? I'm planning on some > follow ups to the ftdi driver and the tty/serial changes are fairly > self-contained. > > Also let me know if you prefer to hold this off for 5.12. The change is > minimal, self-contained and low-risk, but it is a new interface and late > in the release cycle as Andy pointed out. I took the first 2 patches now, that was easy :) I think we need more review for the rest of the series. This does change the way serial ports work in a non-traditional way (i.e. using sysfs instead of terminal settings). So I want to get a bunch of people to agree that this is ok to do things this way now before taking this new user-visible api. thanks, greg k-h