From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 21 Jan 2026 13:00:41 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1viWt8-003kdj-11 for lore@lore.pengutronix.de; Wed, 21 Jan 2026 13:00:41 +0100 Received: from bombadil.infradead.org ([2607:7c80:54:3::133]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1viWt7-0006y2-8o for lore@pengutronix.de; Wed, 21 Jan 2026 13:00:41 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=pkifcsr7n22KRKJ20fL8Tcw9JAca3BfPiMmvo/+9y5E=; b=GGDgVjQmKejpypDonBsTX/MX0z 2Oyr8PfspkhPoOdsOHeOnS80v9UsIdpieDWrLox5IWzeZS0QxyYDjhQJn+mtlDIyEtsit7xtyltYH oFsgRUkOSER0PF24vQ6dQU9v6kXFE9ZH+b5TBzz4pHkg2jrJ8/ztqT24SX5siEgD5nspeU6NPAqwk HtfWhJ85G0g6/TDm29+50gfraFjXw9z+3sfzRuNwIXQFK/yOaGk9DlnCx1+ziA0GVr/1vgLhyonfL /2lQ074iucBTkYW96qveWCCGSxNLjytuZMo261JKF+RkDQntvikwP551r3yIzLPH6ahq0Lanx47Ky Gx44TTMg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1viWsV-00000005NYY-0MEx; Wed, 21 Jan 2026 12:00:03 +0000 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1viWsR-00000005NXV-31p3 for barebox@lists.infradead.org; Wed, 21 Jan 2026 12:00:01 +0000 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1viWsP-0006oh-8G; Wed, 21 Jan 2026 12:59:57 +0100 Received: from pty.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::c5]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1viWsP-001k5M-2N; Wed, 21 Jan 2026 12:59:57 +0100 Received: from mfe by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1viWsO-0076cu-38; Wed, 21 Jan 2026 12:59:56 +0100 Date: Wed, 21 Jan 2026 12:59:56 +0100 From: Marco Felsch To: Ahmad Fatoum Cc: barebox@lists.infradead.org Message-ID: <20260121115956.vmladw473234n5q2@pengutronix.de> References: <20260121113234.1438699-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260121113234.1438699-1-a.fatoum@pengutronix.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260121_035959_759786_5536CFBF X-CRM114-Status: GOOD ( 26.62 ) X-BeenThere: barebox@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "barebox" X-SA-Exim-Connect-IP: 2607:7c80:54:3::133 X-SA-Exim-Mail-From: barebox-bounces+lore=pengutronix.de@lists.infradead.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-3.9 required=4.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Subject: Re: [PATCH 1/2] of: base: add new barebox,status property X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.whiteo.stw.pengutronix.de) On 26-01-21, Ahmad Fatoum wrote: > I am confronted with an occasional hang on the Radxa Rock 3A during > PCI probe. The board has no PCI devices connected. > > This hang doesn't happen in Linux and doesn't happen on the QNAP > TS433-eU, which is also RK3568, but actually has PCIe devices, which are > probed normally. > > For such purposes, add a barebox,status property as setting the status > to disabled, would impact Linux as well if barebox were to pass along > its own device tree, e.g. when installing the UEFI device tree > configuration table. > > Signed-off-by: Ahmad Fatoum Reviewed-by: Marco Felsch > --- > v1 -> v2: > - rework to make clearer when to use the new property. (Marco) > - add example with UEFI device tree configuration table into commit > message (Marco) > --- > .../devicetree/bindings/barebox/barebox,status.rst | 14 ++++++++++++++ > drivers/of/base.c | 4 +++- > 2 files changed, 17 insertions(+), 1 deletion(-) > create mode 100644 Documentation/devicetree/bindings/barebox/barebox,status.rst > > diff --git a/Documentation/devicetree/bindings/barebox/barebox,status.rst b/Documentation/devicetree/bindings/barebox/barebox,status.rst > new file mode 100644 > index 000000000000..03f484cdcfe1 > --- /dev/null > +++ b/Documentation/devicetree/bindings/barebox/barebox,status.rst > @@ -0,0 +1,14 @@ > +barebox,status property > +======================= > + > +barebox interprets ``barebox,status`` the same as it does ``status``, > +but gives the barebox-specific property precedence if both exist. > + > +The purpose of this property is to keep the ``status`` property of the > +upstream DT, imported from Linux, untouched. > + > +Using ``barebox,status`` may be necessary to temporarily workaround > +barebox drivers that misbehave on a given board; Disabling the driver > +may be undesirable if it can handle other instances of the same device > +on the board or if barebox is being built to support other boards > +at the same time, where the driver functions correctly. > diff --git a/drivers/of/base.c b/drivers/of/base.c > index 54fd458bd9a1..4e83a757a4e9 100644 > --- a/drivers/of/base.c > +++ b/drivers/of/base.c > @@ -2149,7 +2149,9 @@ int of_device_is_available(const struct device_node *device) > const char *status; > int statlen; > > - status = of_get_property(device, "status", &statlen); > + status = of_get_property(device, "barebox,status", &statlen); > + if (status == NULL) > + status = of_get_property(device, "status", &statlen); > if (status == NULL) > return 1; > > -- > 2.47.3 > > -- #gernperDu #CallMeByMyFirstName Pengutronix e.K. | | Steuerwalder Str. 21 | https://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |