From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 24 Aug 2018 10:12:06 -0400 Subject: [U-Boot] [PATCH 11/25] clk: Allow clock defaults to be set also during re-reloc state In-Reply-To: <20180821143203.29142-12-lokeshvutla@ti.com> References: <20180821143203.29142-1-lokeshvutla@ti.com> <20180821143203.29142-12-lokeshvutla@ti.com> Message-ID: <20180824141206.GB26633@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 Tue, Aug 21, 2018 at 08:01:49PM +0530, Lokesh Vutla wrote: > From: Andreas Dannenberg > > The earlier commit f4fcba5c5ba ("clk: implement clk_set_defaults()") > which introduced the functionality for setting clock defaults such as > rates and parents will skip the processing when executing in a re-reloc > state. This for example can prevent the assigning of clock parents > when running in SPL code. Go ahead and remove this limitation. > > Signed-off-by: Andreas Dannenberg > Signed-off-by: Lokesh Vutla > --- > drivers/clk/clk-uclass.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclass.c > index 2b15978e14..04b369aa5a 100644 > --- a/drivers/clk/clk-uclass.c > +++ b/drivers/clk/clk-uclass.c > @@ -243,10 +243,6 @@ int clk_set_defaults(struct udevice *dev) > { > int ret; > > - /* If this is running pre-reloc state, don't take any action. */ > - if (!(gd->flags & GD_FLG_RELOC)) > - return 0; > - > debug("%s(%s)\n", __func__, dev_read_name(dev)); > > ret = clk_set_default_parents(dev); Philipp? David? Comments? Thanks! > -- > 2.18.0 > > _______________________________________________ > U-Boot mailing list > U-Boot at lists.denx.de > https://lists.denx.de/listinfo/u-boot -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: