[PATCH 0/2] spacemit: fix USB2 clock and reset

Yixun Lan posted 2 patches 1 week ago
drivers/clk/spacemit/ccu-k3.c              | 2 +-
drivers/reset/spacemit/reset-spacemit-k3.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
[PATCH 0/2] spacemit: fix USB2 clock and reset
Posted by Yixun Lan 1 week ago
In current code (v7.1-rc1), the register bit of bus clock and ahb reset
for USB2 were wrongly swapped, but this didn't cause any problem, because
from setting the register bits perspective, the de-assert reset operation
is effectly equivalent to enabling the clock bit, both of them will set
value 1.

This issue was found during suspend/resume test with vendor's internal
kernel.

I've combined these two patches in one series, but would expect each
patch to go via its own subsystem as bug fix, The USB2 driver is not yet
enabled in v7.1 cycle, so it's safe that we won't break any USB2 driver.

Signed-off-by: Yixun Lan <dlan@kernel.org>
---
Yixun Lan (2):
      clk: spacemit: k3: fix USB2 bus clock
      reset: spacemit: k3: fix USB2 ahb reset

 drivers/clk/spacemit/ccu-k3.c              | 2 +-
 drivers/reset/spacemit/reset-spacemit-k3.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
base-commit: 254f49634ee16a731174d2ae34bc50bd5f45e731
change-id: 20260428-06-clk-reset-usb-fix-a265d4e836e5

Best regards,
--  
Yixun Lan <dlan@kernel.org>