Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4220496pxu; Mon, 30 Nov 2020 22:23:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJy0baTGvZO2sT2y6MDTorv9MoGGX/BlwTi1d6OfjQYYyGYhwvUcdMVb3hidBSGuSjU+kJmI X-Received: by 2002:a17:906:3a4e:: with SMTP id a14mr1582020ejf.140.1606803786560; Mon, 30 Nov 2020 22:23:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606803786; cv=none; d=google.com; s=arc-20160816; b=cXi50N8DVlwJlOTb+vEWu9wgJGS1RDX8FD1DgmI26vBrouuruMwrAjSkl7NgT3NDxz 0X3SG2TYNDy7uii6Qi7OwJkeJOWpeZahQZhs5wz1lQGd5PdXSxeAZehByveRidGZbxOX Epi4ytI5udMkrdhiVZ1N2gAUjN+dKJk1WKxfZUMpiNwkB3oJOPl5RSI8jfxMDz1nbXsJ mDmEV35doY82cde56xrSLSPx5coswkwmefjT0PH8ShFvKU7opANx5RV5TwWYKv7EM5pJ sMbSbUbi8XbC+12CVvTYl+K11ejZz62OYUns2zpyWwtSL/1+pjJTMpxvtW/JTx6bzntQ Bq3A== 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=il4OrsFi/+ZmpHKzmwybykJE1rrEwD0WSXk3jzdi72I=; b=nef62djEaDqYXVxZvYVXiz75iGFBOWU0X2J/RoFWF/W2Yljk3wL+TgMwJJrwTOJtR2 apXAFbfaeHKArPZjZIfD2d8J2sRVd65ypbyexyBv47nlpb2unVDurS81u9DZXJa8i6n3 H+/jutjVAeSM6TSTgP9JqXYMjJuPPMxEiOuGCuLhOW2Qr5UGl0HPL0ftGRynxk/nNYjb OXzlkW6HabhomxrlzvOErMjNfLPRNPFyHUHwa2WySOpFDDKgAVreuozbUwsJ2CYvFfne dVGLQeoeZrQjMe8YPHbPvrEVkTd11kDz46gBcq1Uxc8Ct2htZPboD1fAZag1VNoO7k7m BaZg== 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 z23si604615edl.270.2020.11.30.22.22.44; Mon, 30 Nov 2020 22:23:06 -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 S1726405AbgLAFt6 (ORCPT + 99 others); Tue, 1 Dec 2020 00:49:58 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:44376 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725979AbgLAFt5 (ORCPT ); Tue, 1 Dec 2020 00:49:57 -0500 Received: by mail-ed1-f67.google.com with SMTP id l5so1312693edq.11; Mon, 30 Nov 2020 21:49:35 -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=il4OrsFi/+ZmpHKzmwybykJE1rrEwD0WSXk3jzdi72I=; b=fLn4lHcnXpH57H3ulw7kQpTsSQnQipnq35POuw4tZHmaTmEmXLB1XPakkRSRdPuWXM qGTJwPE+ServoGSlJkVgT91O+yEnO0hrlhCVOrM6OMqH6fwmy6cE2LE0kKQjP324iyAc H/f4+9TxriyY0H7dV9xnfBuXkd0VkOGJkSx3oPrBTvNHWR0fw6PeD/1bkVAvag0tQbqP Hdu9F95IP7rdaTKSXGbaIao75SYcRYYaIHrsk8RO+LOiz1BYaWA0+hYyfdg/DAnvmS9o Br3LZ5NyQNEWxct4yzoFKO88BHLJLJwfOanX4+ISYLn7T3mR5D0fegIAvOtF3PQbqn/n 5xEA== X-Gm-Message-State: AOAM530OLdicD/W3IPUZvAXQ9OpcQAEmBdEmdeEJbooVz8kvYCbgzkdP X+XxDUm9aXJsvfK8qytNVIBg/1wB8+0= X-Received: by 2002:a50:fe14:: with SMTP id f20mr1343583edt.61.1606801749749; Mon, 30 Nov 2020 21:49:09 -0800 (PST) Received: from ?IPv6:2a0b:e7c0:0:107::49? ([2a0b:e7c0:0:107::49]) by smtp.gmail.com with ESMTPSA id g15sm251467edj.49.2020.11.30.21.49.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Nov 2020 21:49:08 -0800 (PST) Subject: Re: [PATCH 1/5] tty: add port flag to suppress ready signalling on open To: Johan Hovold , Greg Kroah-Hartman Cc: "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> <20201130153742.9163-2-johan@kernel.org> From: Jiri Slaby Message-ID: Date: Tue, 1 Dec 2020 06:49: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: <20201130153742.9163-2-johan@kernel.org> Content-Type: text/plain; charset=iso-8859-2; 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, 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. > +{ > + 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. thanks, -- js