linux/drivers/clk/ti
Tero Kristo 3d8598fb9c clk: ti: clkctrl: use fallback udelay approach if timekeeping is suspended
In certain cases it is possible that the timekeeping has been suspended
already when attempting to disable/enable a clkctrl clock. This will
happen at least on am43xx platform when attempting to enable / disable
the clockevent source itself, burping out a warning from timekeeping core.

The sequence of events leading to this:
-> timekeeping_suspend()
 -> clockevents_suspend()
  -> omap_clkevt_idle()
   -> omap_hwmod_idle()
    -> _omap4_clkctrl_clk_disable()
     -> _omap4_is_timeout()

Avoid the issue by checking if the timekeeping is suspended and using
the fallback udelay approach for checking timeouts.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Acked-by: Stephen Boyd <sboyd@codeaurora.org>
2017-12-01 15:15:38 +02:00
..
adpll.c clk: ti: check for null return in strrchr to avoid null dereferencing 2017-08-31 18:44:13 -07:00
apll.c clk: ti: make clk_ops const 2017-08-23 15:53:25 -07:00
autoidle.c clk: ti: convert to use proper register definition for all accesses 2017-03-08 13:06:15 +02:00
clk-2xxx.c Merge branch 'cleanup-clk-h-includes' into clk-next 2015-07-28 11:59:09 -07:00
clk-3xxx-legacy.c clk: ti: Include clk.h 2015-07-20 11:11:28 -07:00
clk-3xxx.c clk: ti: convert to use proper register definition for all accesses 2017-03-08 13:06:15 +02:00
clk-7xx.c clk: ti: dra7: fix "failed to lookup clock node gmac_gmii_ref_clk_div" boot message 2016-12-08 15:09:12 -08:00
clk-33xx.c clk: ti: am335x/am4372: Add tbclk to pwm node 2016-06-10 03:25:04 -07:00
clk-43xx.c ARM: DT updates for v4.8 2016-08-01 18:37:45 -04:00
clk-44xx.c clk: ti: omap4: add clkctrl clock data 2017-06-15 10:48:08 +03:00
clk-54xx.c clk: ti: dra7: fix kernel boot with arg 'clocksource=gp_timer' 2016-04-15 17:30:07 -07:00
clk-814x.c clk: ti: Fix some errors found by static checkers 2016-03-01 16:21:25 -08:00
clk-816x.c clk: ti816x: Add missing dmtimer clkdev entries 2015-11-24 11:30:27 +02:00
clk-dra7-atl.c clk: ti: dra7-atl-clock: fix child-node lookups 2017-11-14 15:53:31 -08:00
clk.c clk: ti: add support for clkctrl aliases 2017-12-01 15:15:20 +02:00
clkctrl.c clk: ti: clkctrl: use fallback udelay approach if timekeeping is suspended 2017-12-01 15:15:38 +02:00
clkt_dflt.c clk: ti: convert to use proper register definition for all accesses 2017-03-08 13:06:15 +02:00
clkt_dpll.c clk: ti: convert to use proper register definition for all accesses 2017-03-08 13:06:15 +02:00
clkt_iclk.c clk: ti: convert to use proper register definition for all accesses 2017-03-08 13:06:15 +02:00
clock.h clk: ti: clkctrl: add support for clkdm init for clkctrl clocks 2017-12-01 15:15:17 +02:00
clockdomain.c clk: Convert to using %pOF instead of full_name 2017-07-21 15:49:54 -07:00
composite.c clk: ti: enforce const types on string arrays 2017-03-08 13:00:25 +02:00
divider.c clk: ti: Delete error messages for failed memory allocations 2017-11-13 17:41:38 -08:00
dpll3xxx.c clk: ti: convert to use proper register definition for all accesses 2017-03-08 13:06:15 +02:00
dpll44xx.c clk: ti: convert to use proper register definition for all accesses 2017-03-08 13:06:15 +02:00
dpll.c clk: ti: fix linker error with !SOC_OMAP4 2017-04-21 19:01:18 -07:00
fapll.c clk: ti: make clk_ops const 2017-08-23 15:53:25 -07:00
fixed-factor.c clk: ti: use automatic clock alias generation framework 2017-03-08 12:58:18 +02:00
gate.c clk: ti: convert to use proper register definition for all accesses 2017-03-08 13:06:15 +02:00
interface.c clk: ti: convert to use proper register definition for all accesses 2017-03-08 13:06:15 +02:00
Kconfig clk: ti: Add support for dm814x ADPLL 2016-03-01 16:21:25 -08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mux.c clk: ti: Delete error messages for failed memory allocations 2017-11-13 17:41:38 -08:00