Patch "clk: ti: clkctrl: add support for retrying failed init" has been added to the 4.15-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
clk: ti: clkctrl: add support for retrying failed init
to the 4.15-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
clk-ti-clkctrl-add-support-for-retrying-failed-init.patch
and it can be found in the queue-4.15 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Fri Mar 16 15:11:07 CET 2018
From: Tero Kristo <[email protected]>
Date: Thu, 12 Oct 2017 10:55:29 +0300
Subject: clk: ti: clkctrl: add support for retrying failed init
From: Tero Kristo <[email protected]>
[ Upstream commit 729e13bf58e643b9accd2a14c55b555958702fb0 ]
In case the clkctrl node contains assigned-clock-* entries, registering the provider can fail with -EPROBE_DEFER. In this case, add the provider to the retry_init clock list so it will be cleaned up later.
--- drivers/clk/ti/clkctrl.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)
drivers/clk/ti/clkctrl.c +11 -1
@@ -400,6 +400,12 @@ _ti_clkctrl_setup_subclks(struct omap_cl } } +static void __init _clkctrl_add_provider (void *data, +struct device_node *np) +{ +of_clk_add_hw_provider (np, _ti_omap4_clkctrl_xlate, data); +} +static void __init _ti_omap4_clkctrl_setup (struct device_node *node) {struct omap_clkctrl_provider *provider;
@@ -411,6 +417,7 @@ static void __init _ti_omap4_clkctrl_setstruct omap_clkctrl_clk *clkctrl_clk;const __be32 *addrp;u32 addr; +int ret; addrp =of_get_address (node,0 ,NULL ,NULL ); addr = (u32 )of_translate_address (node, addrp);
@@ -485,7 +492,10 @@ static void __init _ti_omap4_clkctrl_set reg_data++; } -of_clk_add_hw_provider (node, _ti_omap4_clkctrl_xlate, provider); + ret =of_clk_add_hw_provider (node, _ti_omap4_clkctrl_xlate, provider); +if (ret == -EPROBE_DEFER ) +ti_clk_retry_init (node, provider, _clkctrl_add_provider); +return ; cleanup:
Patches currently in stable-queue which might be from [email protected] are
queue-4.15/clk-ti-clkctrl-add-support-for-retrying-failed-init.patch