From: Tom Rini Date: Sat, 4 Aug 2018 19:41:08 -0400 Subject: [U-Boot] clk: clk_set_default: accept no-op skip fields In-Reply-To: <1532611172-1476-1-git-send-email-narmstrong@baylibre.com> References: <1532611172-1476-1-git-send-email-narmstrong@baylibre.com> Message-ID: <20180804234108.GN32145@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Jul 26, 2018 at 03:19:32PM +0200, Neil Armstrong wrote: > 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: f4fcba5c5baa "clk: implement clk_set_defaults()" > Signed-off-by: Neil Armstrong > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: