clk: rockchip: fix rk3568 cpll clk gate bits
authorPeter Geis <pgwipeout@gmail.com>
Wed, 19 May 2021 17:41:49 +0000 (13:41 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 15:06:58 +0000 (17:06 +0200)
commite1fd4e8e99e554020f082ff46e593d4f59f14e35
tree866758077a6680d66aae59bd0b9a27aeac4dc491
parent8989945c62c7a7990bd9dc30de1283151e2af57f
clk: rockchip: fix rk3568 cpll clk gate bits

[ Upstream commit 2f3877d609e7951ef96d24979eb9d163f1f004f8 ]

The cpll clk gate bits had an ordering issue. This led to the loss of
the boot sdmmc controller when the gmac was shut down with:
`ip link set eth0 down`
as the cpll_100m was shut off instead of the cpll_62p5.
cpll_62p5, cpll_50m, cpll_25m were all off by one with cpll_100m
misplaced.

Fixes: cf911d89c4c5 ("clk: rockchip: add clock controller for rk3568")
Signed-off-by: Peter Geis <pgwipeout@gmail.com>
Reviewed-by: Elaine Zhang<zhangqing@rock-chips.com>
Link: https://lore.kernel.org/r/20210519174149.3691335-1-pgwipeout@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/rockchip/clk-rk3568.c