]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: ti: clkctrl: Fix clkdm_clk handling
authorTony Lindgren <tony@atomide.com>
Mon, 6 May 2019 21:08:54 +0000 (14:08 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Jun 2019 06:15:15 +0000 (08:15 +0200)
commit00ed897d618ef0777ca126f8698dff6bf08f7979
treed133d3440d5deeedac9aa1ef15354baebf8bacdf
parentef4ffa0f0b677e090a4176b19599922af20a43fa
clk: ti: clkctrl: Fix clkdm_clk handling

[ Upstream commit 1cc54078d104f5b4d7e9f8d55362efa5a8daffdb ]

We need to always call clkdm_clk_enable() and clkdm_clk_disable() even
the clkctrl clock(s) enabled for the domain do not have any gate register
bits. Otherwise clockdomains may never get enabled except when devices get
probed with the legacy "ti,hwmods" devicetree property.

Fixes: 88a172526c32 ("clk: ti: add support for clkctrl clocks")
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/ti/clkctrl.c