]> git.baikalelectronics.ru Git - kernel.git/commit
clk: microchip: mpfs: don't reset disabled peripherals
authorConor Dooley <conor.dooley@microchip.com>
Mon, 11 Apr 2022 07:23:41 +0000 (08:23 +0100)
committerStephen Boyd <sboyd@kernel.org>
Fri, 22 Apr 2022 02:35:07 +0000 (19:35 -0700)
commit7a2ca0d41e5e85bf459a814ed58f86a7a50f6270
treefeebf27b86a97e15f1696b555301458a7e202097
parent6d94017b7b59bab528be97be158d0d602982e3a6
clk: microchip: mpfs: don't reset disabled peripherals

The current clock driver for PolarFire SoC puts the hardware behind
"periph" clocks into reset if their clock is disabled. CONFIG_PM was
recently added to the riscv defconfig and exposed issues caused by this
behaviour, where the Cadence GEM was being put into reset between its
bringup & the PHY bringup:

https://lore.kernel.org/linux-riscv/9f4b057d-1985-5fd3-65c0-f944161c7792@microchip.com/

Fix this (for now) by removing the reset from mpfs_periph_clk_disable.

Fixes: 8b6aa78fc69c ("clk: microchip: Add driver for Microchip PolarFire SoC")
Reviewed-by: Daire McNamara <daire.mcnamara@microchip.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20220411072340.740981-1-conor.dooley@microchip.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/microchip/clk-mpfs.c