aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clocksource/timer-meson6.c
diff options
context:
space:
mode:
authorSuman Anna <s-anna@ti.com>2020-02-12 23:35:04 -0600
committerDaniel Lezcano <daniel.lezcano@linaro.org>2020-02-27 10:32:11 +0100
commit753e83408b7f2980b7a5bfcf01f1175a937a2340 (patch)
tree1e8118aa81f31f261c08cbe5f54f7c504a030fac /drivers/clocksource/timer-meson6.c
parent6ce4fcb015a1a1290ffafcf3554901b40f9322df (diff)
downloadkernel_replicant_linux-753e83408b7f2980b7a5bfcf01f1175a937a2340.tar.gz
kernel_replicant_linux-753e83408b7f2980b7a5bfcf01f1175a937a2340.tar.bz2
kernel_replicant_linux-753e83408b7f2980b7a5bfcf01f1175a937a2340.zip
clocksource/drivers/timer-ti-dm: Drop bogus omap_dm_timer_of_set_source()
The function omap_dm_timer_of_set_source() was originally added in commit 31a7448f4fa8a ("ARM: OMAP: dmtimer: Add clock source from DT"), and is designed to set a clock source from DT using the clocks property of a timer node. This design choice is okay for clk provider nodes but otherwise is a bad design as typically the clocks property is used to specify the functional clocks for a device, and not its parents. The timer nodes now all define a timer functional clock after the conversion to ti-sysc and the new clkctrl layout, and this results in an attempt to set the same functional clock as its parent when a consumer driver attempts to acquire any of these timers in the omap_dm_timer_prepare() function. This was masked and worked around in commit 983a5a43ec25 ("clocksource: timer-ti-dm: Fix pwm dmtimer usage of fck reparenting"). Fix all of this by simply dropping the entire function. Any DT configuration of clock sources should be achieved using assigned-clocks and assigned-clock-parents properties provided by the Common Clock Framework. Cc: Tony Lindgren <tony@atomide.com> Cc: Tero Kristo <t-kristo@ti.com> Cc: Neil Armstrong <narmstrong@baylibre.com> Cc: H. Nikolaus Schaller <hns@goldelico.com> Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com> Cc: Keerthy <j-keerthy@ti.com> Cc: Ladislav Michl <ladis@linux-mips.org> Cc: Pavel Machek <pavel@ucw.cz> Cc: Sebastian Reichel <sre@kernel.org> Signed-off-by: Suman Anna <s-anna@ti.com> Tested-by: Lokesh Vutla <lokeshvutla@ti.com> Tested-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20200213053504.22638-1-s-anna@ti.com
Diffstat (limited to 'drivers/clocksource/timer-meson6.c')
0 files changed, 0 insertions, 0 deletions