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:37:03 +0000 (09:37 +0100)
commite107641b0a1273636b0ebe601eaa573001ed0f1d
tree9367ce6f6d60d0b860f8c81393699fd5be4a7e1d
parenteef9287108b27063391a52a47ed2b4cc369af472
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