Skip to content

Commit 8d674d0

Browse files
committed
Merge tag 'sunxi-drivers-for-5.17-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux into arm/fixes
Some new drivers changes for the Allwinner SoCs, fixing the shutdown path of the RSB driver * tag 'sunxi-drivers-for-5.17-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux: bus: sunxi-rsb: Fix shutdown Link: https://lore.kernel.org/r/6f2f75ad-de62-49a4-82a4-8655a567a09e.lettre@localhost Signed-off-by: Arnd Bergmann <[email protected]>
2 parents 2ac2f08 + 017a716 commit 8d674d0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/bus/sunxi-rsb.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -687,11 +687,11 @@ static int sunxi_rsb_hw_init(struct sunxi_rsb *rsb)
687687

688688
static void sunxi_rsb_hw_exit(struct sunxi_rsb *rsb)
689689
{
690-
/* Keep the clock and PM reference counts consistent. */
691-
if (pm_runtime_status_suspended(rsb->dev))
692-
pm_runtime_resume(rsb->dev);
693690
reset_control_assert(rsb->rstc);
694-
clk_disable_unprepare(rsb->clk);
691+
692+
/* Keep the clock and PM reference counts consistent. */
693+
if (!pm_runtime_status_suspended(rsb->dev))
694+
clk_disable_unprepare(rsb->clk);
695695
}
696696

697697
static int __maybe_unused sunxi_rsb_runtime_suspend(struct device *dev)

0 commit comments

Comments
 (0)