Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4246127pxu; Mon, 30 Nov 2020 23:19:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzYXSTJFqd6EiDtYrpRqbnxH2E8kv8lBRyKX2ddJjns0CpT7sU1RfVgSoDYhw7zHFcren5o X-Received: by 2002:aa7:d601:: with SMTP id c1mr1556655edr.323.1606807140555; Mon, 30 Nov 2020 23:19:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606807140; cv=none; d=google.com; s=arc-20160816; b=o3bUsFVp6cZ4ESjYDTkZ7DlC+o7tHt5WKDp+qrztjWciSfqE/8jLSiOhMRFFlyoBHR 7LlQ1lBt0NtFlDdv3UTfN3G19FyBALHZ/nPAH71vCsvUxCN38pjip3zRT1LB7B8G24ug sNzOJviSergW1gyX/j/ZVHSYmPKlSTpCzm3QCF7j7+F1OGhF0RmTDSBqcXuNP0pY+utV BP8+SPaAtnzX1TMo4/zlCgD8/VVogeGm4i8l46tA1UmesRMriIhiCGisx844DhV0Y/bP sDaMSAX8QQmmw+OMhjYEXwwntl9XC3YY7K0V5Yq8wJBlifHiqLqzejAHlbpU24J5prz4 n2nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=OZosIAZ5kQh+M6bi+XZwxMMNMZ/xJ39Rm7xM03MsjcM=; b=FTqq0Nwmq3P/iGnp4RezGgEs9Sa7q6wPM8sq3i6R8a6REveDuRYKqHvPzh+qI+Dt/B EDK6NJGnvtBbZQZ7JPjx9OsT9GJRWN1C1FyHKCrbZeSnFhPi4CGzHyeac0T3Ce4PQQXP epiVv7f5q6SoI2lqWL8w0BJ0oY1rNmLeVx2w7wgyzFlAz+wDDDC+qxjQnKMGHuXRH91g 66TKD+UyDfUhenak/BMLI8NHW7rUFPndVRdoI8GJxK/agv/fIE/KGjnYxlr6ApCesgCK dDT88i2VNpo6CSzdX5cjNmN0PxXcdxYJeVWmw9YvJqQC4/B65RWdIP9x1Ns6z9QqFEJb 1y/A== 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 v21si431140ejh.106.2020.11.30.23.18.38; Mon, 30 Nov 2020 23:19:00 -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 S1727771AbgLAHOv (ORCPT + 99 others); Tue, 1 Dec 2020 02:14:51 -0500 Received: from mail-ej1-f66.google.com ([209.85.218.66]:36316 "EHLO mail-ej1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727109AbgLAHOv (ORCPT ); Tue, 1 Dec 2020 02:14:51 -0500 Received: by mail-ej1-f66.google.com with SMTP id lt17so1996140ejb.3; Mon, 30 Nov 2020 23:14:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=OZosIAZ5kQh+M6bi+XZwxMMNMZ/xJ39Rm7xM03MsjcM=; b=Z9O5lhlGPN5n4qDVVBMLPbnCOOwpRJq/n86cJJYlpubfJKYeJevjoZdFWBchuQmG0D FGZhAVeqa6Hdtn2X4ZpEScDz/8KbYo5ZCZ5G3L2alOU06f/JQRW3aQklOQuthw+fO06O Yt7X+7At0Sliq1Lh7D2LSnyb7awy77cbbKbYM2e+l+GUGP+jmcAqbG4M9q/imNOGT10H suc0VzAHiHA8/s3w1DBswcp/LF0Km3wGkKWohln2Rn30S8lTgK9XktkfJcPyAaU0gRFi uhbxKSalmgmvQGxQjAhh7vNKvk7JdUr1/CWgyzq0GcBpHBzPJ68yD3e8mmwUN/zx/+QU jUrg== X-Gm-Message-State: AOAM531XTrdzlWV24eONQgbOdsgo9+713zKA5Mm76wMp4gw6xPToJuyR 2iYZoyeUcoZ+ePeYQxh5do1V5otmz8M= X-Received: by 2002:a17:906:358e:: with SMTP id o14mr1678870ejb.526.1606806848925; Mon, 30 Nov 2020 23:14:08 -0800 (PST) Received: from [192.168.1.49] (185-219-167-24-static.vivo.cz. [185.219.167.24]) by smtp.gmail.com with ESMTPSA id j27sm191022ejo.61.2020.11.30.23.14.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Nov 2020 23:14:08 -0800 (PST) Subject: Re: [PATCH 0/5] tty: add flag to suppress ready signalling on open To: Mychaela Falconia , Johan Hovold Cc: Greg Kroah-Hartman , "Mychaela N . Falconia" , linux-serial@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <20201130153742.9163-1-johan@kernel.org> From: Jiri Slaby Message-ID: Date: Tue, 1 Dec 2020 08:14:07 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30. 11. 20, 22:22, Mychaela Falconia wrote: > 2) For situations in which the luxury of a custom USB ID is not > available, e.g., a situation where the device that does not tolerate > automatic DTR/RTS assertion on open is a physical RS-232 device that > can be connected to "any" serial port, the new sysfs attribute comes > to the rescue. > > Johan's patch comments say that the new flag can also be brought out > to termios in the future, similarly to HUPCL, The difference to other control flags is that open raises DTR/RTS in any case (i.e. including O_NONBLOCK) -- provided baud rate is set (and it is for casual serials). That means you cannot open a port to configure it (using e.g. setserial) without actually raising the DTR/RTS. > 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? We would need to (ab)use another open flag (e.g. O_DIRECT). I am not biased to either of solutions. thanks, -- js