clk: imx6q: fix uart earlycon unwork
authorDong Aisheng <aisheng.dong@nxp.com>
Fri, 2 Jul 2021 08:54:38 +0000 (16:54 +0800)
committerSasha Levin <sashal@kernel.org>
Thu, 26 Aug 2021 12:35:53 +0000 (08:35 -0400)
commit7203b4986d9ac542865a58c2456123d6797bdf0d
treeca755580c12f5ccc6d4b68ed4d8a14b93fccc9b5
parent3f8920c5706e9a688705b6217996cde01e851591
clk: imx6q: fix uart earlycon unwork

[ Upstream commit 283f1b9a0401859c53fdd6483ab66f1c4fadaea5 ]

The earlycon depends on the bootloader setup UART clocks being retained.
There're actually two uart clocks (ipg, per) on MX6QDL,
but the 'Fixes' commit change to register only one which means
another clock may be disabled during booting phase
and result in the earlycon unwork.

Cc: stable@vger.kernel.org # v5.10+
Fixes: 379c9a24cc23 ("clk: imx: Fix reparenting of UARTs not associated with stdout")
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Link: https://lore.kernel.org/r/20210702085438.1988087-1-aisheng.dong@nxp.com
Reviewed-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/imx/clk-imx6q.c