Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4287409pxu; Tue, 1 Dec 2020 00:48:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJxUamF59xN4lYNox0OJdBSuyoFQQIec5McFXSKWz897v4kAFxNfl0rTnS4p/fAdw8PIoK0C X-Received: by 2002:a17:906:38d6:: with SMTP id r22mr1960696ejd.149.1606812507601; Tue, 01 Dec 2020 00:48:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606812507; cv=none; d=google.com; s=arc-20160816; b=FvcUFj283Ays1wR6Sxf8rgax6HdZClIJhKpeYlOe8o2i9pid29qY3LTucEw+Tq1J31 LFC1c8PpjKkGAEUjtT6KY7PdMl1bOVjk3ooS1yztMcYwqfSiZvd4gnULgpV/PGYBjuz7 2EOjISgQD3RnGWMUP2ClBgQAyTdpapdkWnK+RTbjKc2P2JxT/bKjT98hXPzKVzh5x9sB 98jJ0WsQqbIsQnNyMtWlQqXM9dwrC5RR3TbiOWaDkWLlu8WXMRfbj6uKpHQZP82E1lYi lRYb263axubmjqnzfWdHqD1RUMH6NlSSk82f71OisTwMxXjgxHygl6QvZXszAR3q8mey hg1Q== 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=Kx5VQRPsE23X8BsQ1MAGZtQ/+4VWIP6o0cNUR+vHfLU=; b=yjM3ftRfrmXe6jAj8uZNBB4nM0M2RReZKz0pDx0WlT4jXW4Z9vhdA5HQvF/mWaAMls 8M1OCBV5wTzNr6MZJjuCJWUdofyV0aTQ7xdC3YFK+LqF4Rh91Q//XnBk/EYwMs/HfU8o g5hoJSvxx2BKa3riOrsvsb6YzpqetETiJcqKMIV06sx6O9BNyMH0g1IBCJOUjJOGqM0o 7LeFVfV53exs4uInuutGUMHMFGGYSA7P74AOK4GxcfHAkLkZDYu2NGl8aQHI1sXUkFU6 gKVvemxJgyuPkDAptasR2ZSh/obfnWqIGYNsudJKtlWwbCj8pRV3pyQaPKmq90L1h1iK 21Uw== 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 v11si658420edt.532.2020.12.01.00.48.02; Tue, 01 Dec 2020 00:48:27 -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 S1727153AbgLAIq2 (ORCPT + 99 others); Tue, 1 Dec 2020 03:46:28 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:45895 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726041AbgLAIq1 (ORCPT ); Tue, 1 Dec 2020 03:46:27 -0500 Received: by mail-lf1-f67.google.com with SMTP id z21so2486770lfe.12; Tue, 01 Dec 2020 00:46:10 -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=Kx5VQRPsE23X8BsQ1MAGZtQ/+4VWIP6o0cNUR+vHfLU=; b=OLD9lzMwee6+PTPsDR4jI3uE8XQwEumzet4D4mxomcBAdZbctVVZJ2piWvAcfs9tx/ NFGW4r4zAItP+A+ndjBF4tFvE7EjtUAhDQ7q0cDabpdQ4j2l4Wb6D0E6Jw7P1C+gxGLu SiWJ+WkIxDRB4rDuMFkLPtJo8ApZnuVldcj7UCn1bMCx6qaYW+w/oKscsTpFXeVgAx+X KlSpLg6iOOjY/cZaHjo4Axr+55K8cMtJm3LUUy4V+pcrrNuKKktUi14J54RpR6eCnhAT ec2N6oqihz9K8vM4XW+v23xRD8DVw7FF5nhTloMVcCzKK6umzgl+Fwewr5PJ+nuC5Gcb w2pA== X-Gm-Message-State: AOAM532rNonwVQJWF4PGRQcDmD9cqKjXjGAzNjyvqb6OMrjrpf0pyDiZ e3oP1EEyIUCCBNS98XiKLL4= X-Received: by 2002:a19:983:: with SMTP id 125mr725555lfj.36.1606812345097; Tue, 01 Dec 2020 00:45:45 -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 g130sm126061lfd.227.2020.12.01.00.45.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 00:45:44 -0800 (PST) Received: from johan by xi.terra with local (Exim 4.93.0.4) (envelope-from ) id 1kk1Ib-0003Fu-3a; Tue, 01 Dec 2020 09:46:13 +0100 Date: Tue, 1 Dec 2020 09:46:13 +0100 From: Johan Hovold To: Jiri Slaby Cc: Johan Hovold , Greg Kroah-Hartman , "Mychaela N . Falconia" , linux-serial@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/5] tty: add port flag to suppress ready signalling on open Message-ID: References: <20201130153742.9163-1-johan@kernel.org> <20201130153742.9163-2-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 Tue, Dec 01, 2020 at 06:49:07AM +0100, Jiri Slaby wrote: > On 30. 11. 20, 16:37, Johan Hovold wrote: > > --- a/include/linux/tty.h > > +++ b/include/linux/tty.h > > @@ -683,6 +684,19 @@ static inline void tty_port_set_kopened(struct tty_port *port, bool val) > > clear_bit(TTY_PORT_KOPENED, &port->iflags); > > } > > > > +static inline bool tty_port_nordy(struct tty_port *port) > > port can be const here. Sure, but see below. > > +{ > > + return test_bit(TTY_PORT_NORDY, &port->iflags); > > +} > > + > > +static inline void tty_port_set_nordy(struct tty_port *port, bool val) > > +{ > > + if (val) > > + set_bit(TTY_PORT_NORDY, &port->iflags); > > + else > > + clear_bit(TTY_PORT_NORDY, &port->iflags); > > We have assign_bit() for these cases these days. Right, but for both your comments this follows the pattern used by the other port-flag helpers. I can add a preparatory patch updating the current helpers, but I don't think this needs to be a blocker. Johan