Skip to contentSkip to conversation

clk: Allow clock defaults to be set also during re-reloc state

PATCH In review Lokesh Vutla 2 participants 2 messages Oct 17, 2018 – Nov 17, 2018 Common clk

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: Allow clock defaults to be set also during re-reloc state

From: Andreas Dannenberg <[email protected]>

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.

---
- This was introduced to skip assigned-clock-rates in SPL. Instead CONFIG_OF_SPL_REMOVE_PROPS should be used to remove not needed properties in SPL.

 drivers/clk/clk-uclass.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/clk/clk-uclass.c +0 -4
index 2b15978e14..04b369aa5a 100644
@@ -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);
Signature · 1 line
2.19.1
#1 lore raw
Quoted 10 lines · Lokesh Vutla

From: Andreas Dannenberg <[email protected]>

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.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181117/acb76377/attachment.sig>