* [PATCH] of/platform: Fix inverted check in of_platform_notify()
@ 2024-07-16 9:57 Geert Uytterhoeven
2024-07-16 18:26 ` Stephen Boyd
0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2024-07-16 9:57 UTC (permalink / raw)
To: Rob Herring, Saravana Kannan, Stephen Boyd
Cc: devicetree, linux-kernel, linux-i2c, Geert Uytterhoeven
The check for of_node_check_flag() was accidentally inverted, causing
i2c-demux-pinctrl to fail on the Koelsch development board:
i2c-demux-pinctrl i2c-mux1: failed to setup demux-adapter 0 (-19)
i2c-demux-pinctrl i2c-mux2: failed to setup demux-adapter 0 (-19)
i2c-demux-pinctrl i2c-mux3: failed to setup demux-adapter 0 (-19)
i2c-demux-pinctrl i2c-mux2: Failed to create device link (0x180) with e6ef0000.video
i2c-demux-pinctrl i2c-mux2: Failed to create device link (0x180) with e6ef1000.video
i2c-demux-pinctrl i2c-mux2: Failed to create device link (0x180) with hdmi-in
i2c-demux-pinctrl i2c-mux2: Failed to create device link (0x180) with hdmi-out
and anything relying on I2C connected to these muxes fails, too.
Also, loading the 25LC040 DT overlay on Ebisu using the out-of-tree
of-configfs now fails, too.
Fixes: 98290f295fbcf18f ("of/platform: Allow overlays to create platform devices from the root node")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
drivers/of/platform.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/of/platform.c b/drivers/of/platform.c
index bda6da866cc8f8f6..86be4dfb9323d8fc 100644
--- a/drivers/of/platform.c
+++ b/drivers/of/platform.c
@@ -739,7 +739,7 @@ static int of_platform_notify(struct notifier_block *nb,
parent = rd->dn->parent;
/* verify that the parent is a bus (or the root node) */
if (!of_node_is_root(parent) &&
- of_node_check_flag(parent, OF_POPULATED_BUS))
+ !of_node_check_flag(parent, OF_POPULATED_BUS))
return NOTIFY_OK; /* not for us */
/* already populated? (driver using of_populate manually) */
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] of/platform: Fix inverted check in of_platform_notify()
2024-07-16 9:57 [PATCH] of/platform: Fix inverted check in of_platform_notify() Geert Uytterhoeven
@ 2024-07-16 18:26 ` Stephen Boyd
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Boyd @ 2024-07-16 18:26 UTC (permalink / raw)
To: Geert Uytterhoeven, Rob Herring, Saravana Kannan
Cc: devicetree, linux-kernel, linux-i2c, Geert Uytterhoeven
Quoting Geert Uytterhoeven (2024-07-16 02:57:25)
> The check for of_node_check_flag() was accidentally inverted, causing
> i2c-demux-pinctrl to fail on the Koelsch development board:
>
> i2c-demux-pinctrl i2c-mux1: failed to setup demux-adapter 0 (-19)
> i2c-demux-pinctrl i2c-mux2: failed to setup demux-adapter 0 (-19)
> i2c-demux-pinctrl i2c-mux3: failed to setup demux-adapter 0 (-19)
> i2c-demux-pinctrl i2c-mux2: Failed to create device link (0x180) with e6ef0000.video
> i2c-demux-pinctrl i2c-mux2: Failed to create device link (0x180) with e6ef1000.video
> i2c-demux-pinctrl i2c-mux2: Failed to create device link (0x180) with hdmi-in
> i2c-demux-pinctrl i2c-mux2: Failed to create device link (0x180) with hdmi-out
>
> and anything relying on I2C connected to these muxes fails, too.
>
> Also, loading the 25LC040 DT overlay on Ebisu using the out-of-tree
> of-configfs now fails, too.
>
> Fixes: 98290f295fbcf18f ("of/platform: Allow overlays to create platform devices from the root node")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
Thanks. I'm going to fold this into the patch and resend the series.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-07-16 18:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-16 9:57 [PATCH] of/platform: Fix inverted check in of_platform_notify() Geert Uytterhoeven
2024-07-16 18:26 ` Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).