clk: imx6q: reset exclusive gates on init
authorLucas Stach <l.stach@pengutronix.de>
Thu, 15 Nov 2018 14:30:26 +0000 (15:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Jan 2019 08:32:38 +0000 (09:32 +0100)
commit73f0b2e36e4019c12b2784bbb1d6533878ecda19
tree01676bea2189fbe9736e5a237687a1c7a4dec4b2
parent8f183b332398b8231a76abfbb559bd01a1adcb46
clk: imx6q: reset exclusive gates on init

[ Upstream commit f7542d817733f461258fd3a47d77da35b2d9fc81 ]

The exclusive gates may be set up in the wrong way by software running
before the clock driver comes up. In that case the exclusive setup is
locked in its initial state, as the complementary function can't be
activated without disabling the initial setup first.

To avoid this lock situation, reset the exclusive gates to the off
state and allow the kernel to provide the proper setup.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Dong Aisheng <Aisheng.dong@nxp.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/imx/clk-imx6q.c