Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp178040lqb; Tue, 16 Apr 2024 12:10:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWbaslIWD0316Qw9BTnvhL7KKKHGf2Rkoqa/PQRdVivnkjzZkw3M6cnsf4KNExvxfNb8lvjOHluh3wlYJOuMTihTZrRtZydPBk+roWunw== X-Google-Smtp-Source: AGHT+IG85efF7fWCqzPJYwownGs4b4fWkDorMlpFBuFggq7btOKrbbgKdHCgLb4iCx45V8yplug6 X-Received: by 2002:a17:90a:2dcf:b0:29b:d747:f7ae with SMTP id q15-20020a17090a2dcf00b0029bd747f7aemr3972793pjm.14.1713294622225; Tue, 16 Apr 2024 12:10:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713294622; cv=pass; d=google.com; s=arc-20160816; b=lsuJSPXv9AWi6yZmaWi2ahKpDFicTivtpV6IYTjmnQHU4bMOv8aDg0c6s5fiXfmcHk M+iifjEQa+byxNEAngZLoKbvD9gRhcHTQbMSUvd6wHNMPaLkCPqdX87zedGpY0p+MuFf E1YV23DePXj/yTlTxOyRhe21nRMya3x09CasJ3vreIlixkib20IPPg9TN3w4EjbR7yT0 fWWgh5kSgHQ6i1gbm3pZNIeaJc8cPlV/T0zG5DHcHogmGdQSpH2d049E0Lw36k5gpXi0 6uzg6qb7WJ6+wZ3YIrkKKIuALG5gy1Ra1rgim67tbNha48UowM8uhniuetYGXoQh/mft eNRg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:feedback-id:references :in-reply-to:message-id:subject:cc:from:to:date:dkim-signature; bh=WQTkJLLntSkg4Yc3SDjamszWTI1ugXj8/1kk1dIE0XA=; fh=IFgVgoakDO3qw9gWY07IltYmiI3jIJb9zoJI5Tu9WzY=; b=mLWBLARKu02/FpQd48Xy5CxUxP8iVl48n87taVMnGdlIpAE1gk3ajhaN/vbY60l+mv BvUjKUM8aRV8YFWJycc5cj+z80Y68X+N1HNhqR/Z/l/VOKMy6nUsuQBOGqEIlh3FHhC4 T8ql8q1wDUNNZOmUuEAKFJABFCaDHEy/bdWZDEMQSltUIQ3GdJzhYDHzhhEszWOQvNhX q7+SAmRyqGK/Kj3ipxLt4Trpz8a+B9WzSTAHmHSXCjH5Iw6ue+Szy1jWVMLIkVES/w5o 1rAJhj3SysQP8JMhcp1tuvaXrr57UiCukrxJjRQOWebHZGy/UFDsfJlgQyNEzrw8hs8p 1W6g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail3 header.b=OVAL6Ibt; arc=pass (i=1 spf=pass spfdomain=pm.me dkim=pass dkdomain=pm.me dmarc=pass fromdomain=pm.me); spf=pass (google.com: domain of linux-kernel+bounces-147451-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147451-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id bj17-20020a17090b089100b002a232701a30si12409833pjb.59.2024.04.16.12.10.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 12:10:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147451-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail3 header.b=OVAL6Ibt; arc=pass (i=1 spf=pass spfdomain=pm.me dkim=pass dkdomain=pm.me dmarc=pass fromdomain=pm.me); spf=pass (google.com: domain of linux-kernel+bounces-147451-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147451-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5098E2835CD for ; Tue, 16 Apr 2024 19:10:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B3094137C25; Tue, 16 Apr 2024 19:10:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pm.me header.i=@pm.me header.b="OVAL6Ibt" Received: from mail-4316.protonmail.ch (mail-4316.protonmail.ch [185.70.43.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5247313777F; Tue, 16 Apr 2024 19:10:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.43.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713294615; cv=none; b=jdspJkRVkPW1oLQGQ+RMWHO88WPTRIcpRiQ9Uv98SazMjALGUcBjLLZFtCt7096fUPJFOLJo0oA+SO6VFn3kW7XsRf23pLSPKMLrhWJAAMul2cVe7fBR5Y2mRS9vHTKRbOmdZTV1rdcprFbfq9iELcCsj1gAf07ewu9Bdb88Yqo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713294615; c=relaxed/simple; bh=WQTkJLLntSkg4Yc3SDjamszWTI1ugXj8/1kk1dIE0XA=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=pnF1BKwNd0VDHW40iMi03iVkzoQ36nrLCVaPNmJAi/6gGe2tZND5EsWMvoDqNaCZPwSv0pXmJL6rcD8nb5wYXwTMb3T5opVD+JMFOphBMPvQAlNqxRe1xHcenj/FU86E4nxlIgfbjsYd39OS8I4rDG3BG81h5Ab5xCn/bySX6O4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=pm.me; spf=pass smtp.mailfrom=pm.me; dkim=pass (2048-bit key) header.d=pm.me header.i=@pm.me header.b=OVAL6Ibt; arc=none smtp.client-ip=185.70.43.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=pm.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pm.me DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail3; t=1713294606; x=1713553806; bh=WQTkJLLntSkg4Yc3SDjamszWTI1ugXj8/1kk1dIE0XA=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=OVAL6IbtkrYJSVYkHbt/zf2IMqOMpqMBX3SR3yVmni9/IF1t1ZPHIAL38on6j0bEM Tu+7U6a+rbvr+YRgjqdUQ2UE0juI1uA/mRY6BRq9uv/yK0i/y0W5ObE9fxmwauQo02 s561qIhmPsG/ot4kMUSYiORhQVVNWpqZLwsQG9BD88e0km4ztR1jmOjC9QT1Nf3jqT xN2tyse2iR9hbX51ltbuTfgVY0nbqEW0qrkSZCFMtcAQGEgKuzz4Vu1CDMgeC2KdFS P2AD9yMEel4CWeUqP9zuBCEA6dcCzeejPW3C7kRxn7gfozigLPumpRP5+7/veJah8B 6+gbbDim6mcJA== Date: Tue, 16 Apr 2024 19:09:52 +0000 To: Andy Shevchenko From: Michael Pratt Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Greg Kroah-Hartman , Jiri Slaby , Wander Lairson Costa , =?utf-8?Q?Ilpo_J=C3=A4rvinen?= , Vamshi Gajjela Subject: Re: [PATCH v2 2/3] serial: 8250: Store whether fifo device is enabled Message-ID: In-Reply-To: References: <20240416182741.22514-1-mcpratt@pm.me> <20240416182741.22514-3-mcpratt@pm.me> Feedback-ID: 27397442:user:proton Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Andy, On Tuesday, April 16th, 2024 at 14:55, Andy Shevchenko wrote: >=20 > > @@ -3392,6 +3392,8 @@ void serial8250_console_write(struct uart_8250_po= rt *up, const char *s, >=20 > > + up->fifo_enable =3D use_fifo; >=20 >=20 > This seems incorrect / not the only one place to assign this. What if the > console not enabled at compile time? What if it's not enabled at boot tim= e? > This is 8250 specific, and currently, it's the only place there where it's decided whether or not to use the fifo device by checking a bunch of flags and values. If you're suggesting that these checks are moved out of this function somew= here else, I would probably agree with that, but let's save that idea for the future..= . If you're suggesting that there could be a null pointer, I don't think that= 's possible in this function... (the name of the pointer being "up" might be confusing?= ) Sorry if I'm misunderstanding what you mean. > -- > With Best Regards, > Andy Shevchenko -- MCP