Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp400504pxu; Tue, 1 Dec 2020 14:18:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtJSIwCAsBx5c/qQGHb6v/nb8tk0+BCdVKeZpjL7GqiLtuIUXCIKvi0GZVbHlwf5Jlnw4R X-Received: by 2002:a17:906:3687:: with SMTP id a7mr5178295ejc.210.1606861081352; Tue, 01 Dec 2020 14:18:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606861081; cv=none; d=google.com; s=arc-20160816; b=r5GGv9mxbf38nbstZf8eFdJncW9meNghoYZfSsF0p6hxMkTqES05Q4Ro/dxt6hOluG o8gNeHeOzAyYZAzyZklgkHrXPq0+2GMIuV6Ae+bKbMtlGhEmZLG0xgARLwkkmHXHZo6u p9iSas+SnLm6uXT4Ucu2RzJRED7avfGQwDzFf62fw9qlm8y8FbW1by/5szlRAlE7zc8V B4qo3fOD40AuicdyVGHijxJMLycVMJQPIKlS5wzyMejHKFAiHzwjZSgWLhVmYdlGVMK9 Q3XpINYqdUvNWdZyzgXhzGhLQTuIyx9SSJZXZdj8uEJVyY5fT8N0+atS+S/C6/uLWDns fDZg== 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:date; bh=MjLBH1cflhBFcl6LdyISGTYGBSe5XpfGgyu9jQzj1CM=; b=lytupYRRWeF641+h/1tC8v3AM+96jy8Z2qQjQ9gwPjl9xRX4Bqpbm7RknRmj7Z6dXy unlENDpgEs/h+66tn6tw2xzFp6RLH8p4929UxghTbCiMfxsUYlIExNGgxPz1dyULRzRF Y3E3nDV42DBXgjilKMvr/hSNwus3VhydsNkB3iuonBS85nf3qbidL6Ts0pyiZjT05HA+ zog+0AIn07c6ypPHWRuQ46kQCHS3efBpt9irTn5ZwQFIdUReBTwc9idKDwQ3Zcqv03oy /w4vEgHnNK1Lj50bRqPbex2F8Yq3ayZc7o+RaO5QRq5wUK81B7ifUOmHgE+FJ/VEPMRj RQMQ== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a15si918942eju.683.2020.12.01.14.17.38; Tue, 01 Dec 2020 14:18:01 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728894AbgLAIkZ (ORCPT + 99 others); Tue, 1 Dec 2020 03:40:25 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:43147 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728794AbgLAIkY (ORCPT ); Tue, 1 Dec 2020 03:40:24 -0500 Received: by mail-lf1-f67.google.com with SMTP id q13so2478521lfr.10; Tue, 01 Dec 2020 00:40:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=MjLBH1cflhBFcl6LdyISGTYGBSe5XpfGgyu9jQzj1CM=; b=tUE9Qy2Cf1iRC+gsusfaE7IHMfI0UlTk4CKUYZCO7acFwE5JFG1KqEv+6q25jD3lUF 1FnTOdNlJX9zYM1oV0ARMCyEpijt+8fMC9BFw87uTGjqQqo6n9OXGJF/e+KgkUstgdDr xb8iRmfZZZ2ctpbO37LK+bZdyoiyilDJx/vjnddRn2+wItIhbosisIz5FEoVdYqzVGNC uSqpEY26wzBlTQuoE5nxIorL7Hb2502JXoPYiMPTpKYHZwbE0zKiQOhsDhbLVlvRtU4v FQ9atbf47LL9wry532PlF87UpCtR+GwEvPfrg5l+2DUFaN7/BzC5V/TToYEkxiFHNClt sv1w== X-Gm-Message-State: AOAM532ViKtrNIb1c5p7NkMI+g/izG5/ONsDl+Lo5CR9lxXDdNmGPx9p or1DTFL8A5O7GfhL4807+/0= X-Received: by 2002:a19:8854:: with SMTP id k81mr740945lfd.577.1606811982325; Tue, 01 Dec 2020 00:39:42 -0800 (PST) Received: from xi.terra (c-beaee455.07-184-6d6c6d4.bbcust.telenor.se. [85.228.174.190]) by smtp.gmail.com with ESMTPSA id x23sm124165lfa.219.2020.12.01.00.39.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 00:39:41 -0800 (PST) Received: from johan by xi.terra with local (Exim 4.93.0.4) (envelope-from ) id 1kk1Cl-0003EW-8j; Tue, 01 Dec 2020 09:40:11 +0100 Date: Tue, 1 Dec 2020 09:40:11 +0100 From: Johan Hovold To: Mychaela Falconia Cc: Johan Hovold , Greg Kroah-Hartman , Jiri Slaby , "Mychaela N . Falconia" , linux-serial@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/5] tty: add flag to suppress ready signalling on open Message-ID: References: <20201130153742.9163-1-johan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 30, 2020 at 01:22:07PM -0800, 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? Depending on the application it may be acceptable to assert the modem-control lines on first open (e.g. before initialisation). A new termios flag allows for a generic interface which could be shared with other OSes and controlled through stty. In case that isn't sufficient and you need control over the default port setting, you can always fall back to the Linux-specific sysfs interface. > In any case, it would be really awesome if this patch series (with or > without further modifications) can make it into 5.10 - any chance of > such happening, or will it have to be pushed out to 5.11? Let's see, but I don't think this necessarily has to take that long to get merged. Johan