Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2230624rdb; Mon, 20 Nov 2023 05:55:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IGGh/MOQ1+9k2PvpVXgUm1ekjI6E2ruJy5nZYRU2WMp0tK9pGmPnliFtMMZXPk8b1mrr4HU X-Received: by 2002:a17:90a:1950:b0:283:21d3:11ea with SMTP id 16-20020a17090a195000b0028321d311eamr6816122pjh.0.1700488502277; Mon, 20 Nov 2023 05:55:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700488502; cv=none; d=google.com; s=arc-20160816; b=wqbzGy58tWcIIpVuvyqSoEH0ISGZISs8pcAokRAZrVq8Mjs8RVh8QJ1g0m/m913izx ikBMYqyvF0ZH2E1cNi9SEHTcqYY6oAKXwVla/2BV61/2gTMqOEjymq48K8ufnqPgASId OFM53OlMdp8yQToPedilm4+UCtV+qv3fXdAFU0jM8ImzwY3EoHT897VJc1xYFqOO0t4K XSzj72R3XArqQTKxJS4O1RQBQcKluO/h7GA3ZX/GT2/jo8Sc6Sj1o1zrOALTAyGagZYk KGiCDxhwdItngfnWI6+VOx0rNZGtuxQy/xvGC9aHbD46I3lhqbDfLFvz+0kTNEUzKxmS UNCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:message-id:from:to:cc :subject:date:content-transfer-encoding:mime-version:dkim-signature; bh=SBP5SEZ8e/heB3zUSBMQAlAbFxbFwRsOqsSWGhUKau4=; fh=qoXpI/DjMYA3szOAfN8zcTJ8oq/+Xq17MSnS2PwXAtY=; b=xWLYgBO4ZUrI3phxP3PYalZ9LWneSx7c4r9xZzqVN3pZxImU9JI08mPQEfKlBI6p82 GNjHfPFor83AWCT1RYTTU344IIZaQiC8kzDYwsBJs0JeCFglOMFwcpRyPg7YFA2RWHOv 0LlbtK3FR6lXKMs6Uw84Mpd/cv1Dqx2kkbGPUO9GMAVQFFTTqn99U1rkR47kuJJBi73c z0Sc+xmuWmX9oJVydRAdaYLRSRIa2L5p/dNBKscQOVw7pDs8Z5VU5okDtcdWVjsMuL4v o/T12IZqaFSPHSRJVF/CQjiuZBaCTC3ljBZFevgXMnx3x3BZoYs5ttT9ZjFwsKrz0nI8 6dEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=CEd0dS2x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id z12-20020a17090ad78c00b0028517c69ac4si3926168pju.134.2023.11.20.05.55.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 05:55:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=CEd0dS2x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 7E60480A3675; Mon, 20 Nov 2023 05:54:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233674AbjKTNyV (ORCPT + 99 others); Mon, 20 Nov 2023 08:54:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233538AbjKTNyI (ORCPT ); Mon, 20 Nov 2023 08:54:08 -0500 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45D6A126; Mon, 20 Nov 2023 05:53:21 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 11D731BF211; Mon, 20 Nov 2023 13:53:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1700488400; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SBP5SEZ8e/heB3zUSBMQAlAbFxbFwRsOqsSWGhUKau4=; b=CEd0dS2x4graR9O7oHTHHQP+korRq84mVAOxufTY4KIloqv230PxRAQzbXhl1L+CcWKjwS jqjNpSUGpq2Fov+6LklflCXvhz7b0pOB24daWTPZYg/DLlSwfxlLt4UVFa53sgn91Ajmbh SRjLQWaNWaP8DDKl7ff48C/qv+co/3/HJQX0/kZ9ucczQns/foDB8JW9o401ySgEHQC5fm m4BGHAkbt0Q+IODgTrJi/A5cMC+KkEXLeo57TNyn5G7t2F/NVIRlMBxioi2y09DuJN+M2a oOpPi7nEknfsx2pYdBVctkB7mVqWbzVFp0w9tmMcLpCcctPm0mbIgO91LlTcbQ== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 20 Nov 2023 14:53:19 +0100 Subject: Re: [PATCH v3 6/6] tty: serial: amba-pl011: factor QDF2400 SoC erratum 44 out of probe Cc: "Russell King" , "Greg Kroah-Hartman" , "Jiri Slaby" , "LKML" , "linux-serial" , "Linus Walleij" , =?utf-8?q?Gr=C3=A9gory_Clement?= , "Alexandre Belloni" , "Thomas Petazzoni" , "Vladimir Kondratiev" , "Tawfik Bayouk" To: =?utf-8?q?Ilpo_J=C3=A4rvinen?= From: =?utf-8?q?Th=C3=A9o_Lebrun?= Message-Id: X-Mailer: aerc 0.15.2 References: <20231120-mbly-uart-v3-0-07ae35979f1f@bootlin.com> <20231120-mbly-uart-v3-6-07ae35979f1f@bootlin.com> <5c10e247-3fe-7455-a13-fde4c3cb0b4@linux.intel.com> In-Reply-To: <5c10e247-3fe-7455-a13-fde4c3cb0b4@linux.intel.com> X-GND-Sasl: theo.lebrun@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 20 Nov 2023 05:54:55 -0800 (PST) Hello, On Mon Nov 20, 2023 at 10:55 AM CET, Ilpo J=C3=A4rvinen wrote: > On Mon, 20 Nov 2023, Th=C3=A9o Lebrun wrote: > > > On this platform, different vendor data is used. That requires a > > compile-time check as we access (1) a global boolean & (2) our local > > vendor data. Both symbols are accessible only when > > CONFIG_ACPI_SPCR_TABLE is enabled. > >=20 > > Factor the vendor data overriding to a separate function that is empty > > when CONFIG_ACPI_SPCR_TABLE is not defined. > >=20 > > Suggested-by: Ilpo J=C3=A4rvinen > > Signed-off-by: Th=C3=A9o Lebrun > > --- > > drivers/tty/serial/amba-pl011.c | 25 ++++++++++++++++++------- > > 1 file changed, 18 insertions(+), 7 deletions(-) > >=20 > > diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-= pl011.c > > index 4185d6fd243b..e08a32eb0ed1 100644 > > --- a/drivers/tty/serial/amba-pl011.c > > +++ b/drivers/tty/serial/amba-pl011.c > > @@ -2874,6 +2874,22 @@ static int pl011_resume(struct device *dev) > > =20 > > static SIMPLE_DEV_PM_OPS(pl011_dev_pm_ops, pl011_suspend, pl011_resume= ); > > =20 > > +#ifdef CONFIG_ACPI_SPCR_TABLE > > +static void qpdf2400_erratum44_workaround(struct device *dev, > > + struct uart_amba_port *uap) > > +{ > > + if (qdf2400_e44_present) > > This should be !qdf2400_e44_present. Completely right! I reversed the if-logic to see how it looked & I forgot negating the condition when going back to the current shape. I've got the fix ready for a v4. You've got some good eyes, thanks. I'll wait a bit to see if there are any other review & avoid spamming the maintainers. Thanks, -- Th=C3=A9o Lebrun, Bootlin Embedded Linux and Kernel engineering https://bootlin.com