Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp410536pxu; Tue, 1 Dec 2020 14:35:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJynkd50FfxD1nlHhIqlC8pGoHsV342l97VWpA47PGjAutwxFYk5aDO1RNayFsJrRdQyEfMk X-Received: by 2002:a17:906:71d3:: with SMTP id i19mr5164815ejk.187.1606862122633; Tue, 01 Dec 2020 14:35:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606862122; cv=none; d=google.com; s=arc-20160816; b=X1vUSX1hFNXQcuEAq85s6lJ5Nu3YTn9JIwWV/ljKaGsvLzjGCeh8+NNq/uycmQKjUh 8Eavu+mevlYDM+EClLyTMGby/NkvlUpGoO8ZhudSYyltDIajpgKipVadixjmfdQgMe3L 9lHOu6D47+FT9uuUcK3lrLGb2fXuh1oqEwGOhhz/Rxup0IgACWcD1Ocmcov1ohp2JGGx CHONQABOOErTiwD0jr29ZPhzKGykoBuYYaMh2JRwBE/0eh2M45o1oSH4JcPA9YkJ6vKT Xhthi8wW5UI0A45VS600hrEwnr9YmGEr2nMJjb8RADWG/pH0G8L60pI+9RMvNGbx61z0 JRDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=dAFYxzGzkBEUMFK3NS6Q6bqv6vlixBH5vwa4XwPAREI=; b=c2lk/XH992LDx7UD4+7Ftl1BAHvfI0Lj7vYDpl5Ohp6qDqL4/9UbFjj3UVTygDLRZP IxEdYw4md0pattnwaabZHBvvXPyTTeOt+mkPuzP01FTt6gK8f/kc2dLEBbIlRyME1HMp 39KUzyt+4WqLCEKyGu2TMnKsoLY6dIgjlm0hZ0xPZ5jezxUbMcLqsUdl2MVY5Ff7qWGX R9WCccZ3U5MAXBxZto6W/+m1KzglEoqDlKuyc8Mdlba9wFZChFG6/UYPeFYB+HTrXpum 1gyvObmxCTZfBmc2/us70XjRetypRc3JGw5/HOfTii1pUwb+jWLcakM0xx8QezQTZpsC f8yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aMgWetRk; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pg28si769967ejb.614.2020.12.01.14.35.00; Tue, 01 Dec 2020 14:35:22 -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=@gmail.com header.s=20161025 header.b=aMgWetRk; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727088AbgLAKsl (ORCPT + 99 others); Tue, 1 Dec 2020 05:48:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725899AbgLAKsl (ORCPT ); Tue, 1 Dec 2020 05:48:41 -0500 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B95F2C0613D2; Tue, 1 Dec 2020 02:48:00 -0800 (PST) Received: by mail-pj1-x1042.google.com with SMTP id p21so618202pjv.0; Tue, 01 Dec 2020 02:48:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dAFYxzGzkBEUMFK3NS6Q6bqv6vlixBH5vwa4XwPAREI=; b=aMgWetRkgiQlzBcnjuqoBLvrtDiSxk3dd7BF7laNfqg0dVZq/Ys9//QA8Y2dR50eoK BjtC/FyBS43nFPuT+zDcSKLy5ierhmZpnciYRZRN08GLpfHfLPfEXXi4pf8tZkV+IJFQ /5DvIVZ+Q5uAqowvcNOlX/PRPd1tbDPGff87umjMa+CmPJMncouOKtfLEkLrqXE8ggfs l5p/yEEyS1M+stze1lNgg9AHJrzHIJMAm5SCLtsn4DtGwWQdHV6lQ1rbosqi1Cuzna3r d5vyK5u7kEFgHKcVYWCwEXB1TPWjIWiQnvCqumUKqC4klCtnYyif3SdGUaCoEsgwZt+w GcOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dAFYxzGzkBEUMFK3NS6Q6bqv6vlixBH5vwa4XwPAREI=; b=WGkiJf3xaMW6o0qKcnoPI83MyO0z7zQSOtOmKbi/53jhKzsmS1QqxH9VnBV1gci7Va t8+3iKaOVHqvdn8NHh+SQOv999aBcPN99cXR59qSlF5nwBYzwV34XBNrRh8JUakO1vc9 9DMYXtSOosgSbQvl9A6CBd6BSmtcle0vKKARohku/HxTw6Tu7v4c4ac7o+a+7x6XR26g nlBDb4PKfdEC/kYQ/OqqKyj0gv8ql4Ssf3MX+dOdzMHUZXH4vuagLtMICiFVme4GJCtc L4KwmFfbKT1FBYjHitmRokmdBYzgEiz6GnBafOTADtdHEL7dVVYGxR57HsxxnS/5RgUa Ma4g== X-Gm-Message-State: AOAM531WQe5+YbpK2w0AhaKDBzfkBsclOrMI9BMfCiqZtElpIB2Zcdh2 Q3YYnSFXqEX+ntb/adtFrfTg0KY7TcuRfczUlOC5kkcY6Lk= X-Received: by 2002:a17:902:ac93:b029:d8:d2c5:e5b1 with SMTP id h19-20020a170902ac93b02900d8d2c5e5b1mr2237976plr.17.1606819680128; Tue, 01 Dec 2020 02:48:00 -0800 (PST) MIME-Version: 1.0 References: <20201130153742.9163-1-johan@kernel.org> In-Reply-To: From: Andy Shevchenko Date: Tue, 1 Dec 2020 12:48:48 +0200 Message-ID: Subject: Re: [PATCH 0/5] tty: add flag to suppress ready signalling on open To: Mychaela Falconia Cc: Johan Hovold , Greg Kroah-Hartman , Jiri Slaby , "Mychaela N . Falconia" , "open list:SERIAL DRIVERS" , USB , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 30, 2020 at 11:25 PM Mychaela Falconia wrote: ... > Johan's patch comments say that the new flag can also be brought out > to termios in the future, similarly to HUPCL, but I question the > usefulness of doing so, as it is a chicken and egg problem: one needs > to open the tty device in order to do termios ioctls on it, and if > that initial open triggers DTR/RTS hardware actions, then the end user > is still screwed. If Johan or someone else can see a potential use > case for manipulating this new flag via termios (as opposed to sysfs > or USB-ID-based driver quirks), perhaps you could elaborate on it? Thanks for the very detailed description of what you are working on. Unfortunately I have no thoughts about alternative solutions. > Andy Shevchenko wrote: > > > > Add a nordy sysfs attribute to suppress raising the modem-control lines > > > on open to signal DTE readiness. > > > > Why not call it nomctrl ? > > I have no opinion one way or another as to what the new sysfs attribute > should be called - my use case won't involve this sysfs mechanism at > all, instead I care much more about the path where the tty port flag > gets set via a driver quirk upon seeing my custom USB ID. :) Then why do we bother with sysfs right now? It's an ABI and Johan is completely aware and knows that once it's in the kernel it is close to being carved in stone. I would vote to remove sysfs from now and see if we really need it in the future. -- With Best Regards, Andy Shevchenko