]> git.dujemihanovic.xyz Git - u-boot.git/commit
clk: renesas: Only ever access documented bits in clock driver teardown
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sat, 25 Apr 2020 12:57:45 +0000 (14:57 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Sun, 25 Apr 2021 21:14:18 +0000 (23:14 +0200)
commit3934b41bb41167723e85713fd2f6375064d5af52
treecbf6a4f8eb1fde555d1e612ac9706c1087cebd7e
parente1333435afbf0c6290b1d16bb446b57807f75502
clk: renesas: Only ever access documented bits in clock driver teardown

The clock driver used a heavy-handed approach where it turned off
all available clocks, while also possibly setting bits which are not
documented in the R-Car datasheet. Update the tables so that only
the bits which are documented are set or cleared when tearing down
the clock driver.

Note that the only clock left running before booting Linux are now
MFIC, INTC-AP, INTC-EX and SCIF2 / SCIF0 on V3x.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@konsulko.com>
drivers/clk/renesas/r8a7795-cpg-mssr.c
drivers/clk/renesas/r8a7796-cpg-mssr.c
drivers/clk/renesas/r8a77965-cpg-mssr.c
drivers/clk/renesas/r8a77970-cpg-mssr.c
drivers/clk/renesas/r8a77980-cpg-mssr.c
drivers/clk/renesas/r8a77990-cpg-mssr.c
drivers/clk/renesas/r8a77995-cpg-mssr.c