linux_dsm_epyc7002/drivers/clk/ti
Tony Lindgren 81a41901ff clk: ti: clkctrl: Fix failed to enable error with double udelay timeout
Commit 3d8598fb9c ("clk: ti: clkctrl: use fallback udelay approach if
timekeeping is suspended") added handling for cases when timekeeping is
suspended. But looks like we can still get occasional "failed to enable"
errors on the PM runtime resume path with udelay() returning faster than
expected.

With ti-sysc interconnect target module driver this leads into device
failure with PM runtime failing with "failed to enable" clkctrl error.

Let's fix the issue with a delay of two times the desired delay as in
often done for udelay() to account for the inaccuracy.

Fixes: 3d8598fb9c ("clk: ti: clkctrl: use fallback udelay approach if timekeeping is suspended")
Cc: Keerthy <j-keerthy@ti.com>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Link: https://lkml.kernel.org/r/20190930154001.46581-1-tony@atomide.com
Tested-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2019-11-04 09:56:53 -08:00
..
adpll.c clk: Remove io.h from clk-provider.h 2019-05-15 13:21:37 -07:00
apll.c clk: ti: Don't reference clk_init_data after registration 2019-08-16 10:22:46 -07:00
autoidle.c clk: ti: check clock type before doing autoidle ops 2019-02-15 16:47:55 +02:00
clk-2xxx.c
clk-3xxx.c
clk-7xx-compat.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
clk-7xx.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
clk-33xx-compat.c
clk-33xx.c
clk-43xx-compat.c
clk-43xx.c
clk-44xx.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
clk-54xx.c clk: ti: add clkctrl data omap5 sgx 2019-08-26 08:47:07 -07:00
clk-814x.c clk: ti: dm814x: Add of_node_put() to prevent memory leak 2019-08-07 15:26:39 -07:00
clk-816x.c
clk-dra7-atl.c clk: ti: dra7-atl-clock: Remove ti_clk_add_alias call 2019-11-04 09:56:11 -08:00
clk.c clk: Remove io.h from clk-provider.h 2019-05-15 13:21:37 -07:00
clkctrl.c clk: ti: clkctrl: Fix failed to enable error with double udelay timeout 2019-11-04 09:56:53 -08:00
clkt_dflt.c
clkt_dpll.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
clkt_iclk.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
clock.h clk: ti: dra7: disable the RNG and TIMER12 clkctrl clocks on HS devices 2019-04-25 10:51:36 -07:00
clockdomain.c clk: ti: remove usage of CLK_IS_BASIC 2019-02-15 16:46:22 +02:00
composite.c
divider.c clk: ti: Remove unused functions 2019-06-07 11:54:48 -07:00
dpll3xxx.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
dpll44xx.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
dpll.c Merge branches 'clk-renesas', 'clk-rockchip', 'clk-const' and 'clk-simplify' into clk-next 2019-09-19 15:31:41 -07:00
fapll.c clk: Remove io.h from clk-provider.h 2019-05-15 13:21:37 -07:00
fixed-factor.c
gate.c clk: ti: Remove unused functions 2019-06-07 11:54:48 -07:00
interface.c clk: ti: generalize the init sequence of clk_hw_omap clocks 2019-02-15 16:46:22 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile
mux.c clk: ti: Remove unused functions 2019-06-07 11:54:48 -07:00