]> git.ipfire.org Git - thirdparty/u-boot.git/commit
simple-pm-bus: Make clocks optional
authorMarkus Schneider-Pargmann (TI.com) <msp@baylibre.com>
Fri, 28 Nov 2025 10:21:21 +0000 (11:21 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 12 Dec 2025 21:16:21 +0000 (15:16 -0600)
commit447bd8f1e5cf4d3c7d50df40d8cb46c7b911d7c5
tree597292dbdd7bd1fc79a3c322e523817e5cf71268
parentaff0f4d30ec6d7968578fc05fc6df6b5700d9913
simple-pm-bus: Make clocks optional

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@bootlin.com>
Signed-off-by: Markus Schneider-Pargmann (TI.com) <msp@baylibre.com>
drivers/core/simple-pm-bus.c