clk: imx6q: reset exclusive gates on init
authorLucas Stach <l.stach@pengutronix.de>
Thu, 15 Nov 2018 14:30:26 +0000 (15:30 +0100)
committerStephen Boyd <sboyd@kernel.org>
Mon, 10 Dec 2018 19:37:07 +0000 (11:37 -0800)
commitf7542d817733f461258fd3a47d77da35b2d9fc81
treedd389cb9dde4678531eca52783afec8095fecf50
parent651022382c7f8da46cb4872a545ee1da6d097d2a
clk: imx6q: reset exclusive gates on init

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>
drivers/clk/imx/clk-imx6q.c