[PATCH] simple-pm-bus: Make clocks optional
Markus Schneider-Pargmann (TI.com)
msp at baylibre.com
Fri Nov 28 11:21:21 CET 2025
simple-pm-bus binding requires either power-domains or clocks, not both.
Allow clk_get_bulk() to return -ENOENT.
When no clocks are present, bulk->count is set to 0, which works
correctly with clk_enable_bulk() and other clk functions used in this
driver.
Reviewed-by: Kory Maincent <kory.maincent at bootlin.com>
Signed-off-by: Markus Schneider-Pargmann (TI.com) <msp at baylibre.com>
---
drivers/core/simple-pm-bus.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/core/simple-pm-bus.c b/drivers/core/simple-pm-bus.c
index f38372ec60bcad4d8c630001d164630f2f99dc32..5df11728e82848b83eae6ab7dad857a8762c2aab 100644
--- a/drivers/core/simple-pm-bus.c
+++ b/drivers/core/simple-pm-bus.c
@@ -16,7 +16,7 @@ static int simple_pm_bus_probe(struct udevice *dev)
struct clk_bulk *bulk = dev_get_priv(dev);
ret = clk_get_bulk(dev, bulk);
- if (ret)
+ if (ret && ret != -ENOENT)
return ret;
ret = clk_enable_bulk(bulk);
---
base-commit: c5e6d2ab7eba68cbfb600cdc131c0c375ced2ec9
change-id: 20251128-topic-simple-pm-bus-optional-clocks-v2026-01-1cd38bd8d3d8
Best regards,
--
Markus Schneider-Pargmann (TI.com) <msp at baylibre.com>
More information about the U-Boot
mailing list