clk: ingenic: Read bypass register only when there is one
authorPaul Cercueil <paul@crapouillou.net>
Sun, 30 May 2021 16:49:20 +0000 (17:49 +0100)
committerStephen Boyd <sboyd@kernel.org>
Mon, 28 Jun 2021 02:49:17 +0000 (19:49 -0700)
commit315a8423b20362bb675c5263cb237ecb51d9589e
treed825089180430a25bac03c53e7d4da22b566c7e9
parent249592bf6d5d52cacdc2f5a07f23368fc1b11324
clk: ingenic: Read bypass register only when there is one

Rework the clock code so that the bypass register is only read when
there is actually a bypass functionality.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20210530164923.18134-4-paul@crapouillou.net
Tested-by: 周琰杰 (Zhou Yanjie)<zhouyanjie@wanyeetech.com> # on CU1830-neo/X1830
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/ingenic/cgu.c