]> git.baikalelectronics.ru Git - uboot.git/commit
clk: clk_set_default: accept no-op skip fields
authorNeil Armstrong <narmstrong@baylibre.com>
Thu, 26 Jul 2018 13:19:32 +0000 (15:19 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 4 Aug 2018 18:50:10 +0000 (14:50 -0400)
commitfc6bfda65d91c8ae61723eb22e53f38fae94f23f
tree7a7a23bc336119b5ffbc72b10df68d75a5ec36c8
parent69da20e4e82f19277a9d8e86cd27ada01212018a
clk: clk_set_default: accept no-op skip fields

The Assigned Clock parents and rates misses the fact that a "0" entry can
be passed to skip setting a parent or rate of an assigned clock as
described in the Linux clock bindings at [1].

This patch simply skips the clock reparenting if the DT parsing returns
-ENOENT and the clock rate setting if "0" is passed as clock rate.

[1] https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bindings/clock/clock-bindings.txt#L135

Fixes: 20f64e78180e "clk: implement clk_set_defaults()"
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/clk/clk-uclass.c