diff options
author | Jernej Skrabec <jernej.skrabec@gmail.com> | 2021-11-21 11:35:37 +0300 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2021-11-22 12:02:57 +0300 |
commit | 017a716e7b0e9d4ac06a4d7779bd04fca009bbc9 (patch) | |
tree | 824fcb01c7476bf85f2b4eddd02bb21a9c71c673 /scripts/gdb/linux/config.py | |
parent | fa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf (diff) | |
download | linux-017a716e7b0e9d4ac06a4d7779bd04fca009bbc9.tar.xz |
bus: sunxi-rsb: Fix shutdown
Function sunxi_rsb_hw_exit() is sometimes called with pm runtime
disabled, so in such cases pm_runtime_resume() will fail with -EACCES.
Instead of doing whole dance of enabling pm runtime and thus clock just
to disable it again immediately, just check if disabling clock is
needed. That way calling pm_runtime_resume() is not needed at all.
Fixes: 4a0dbc12e618 ("bus: sunxi-rsb: Implement runtime power management")
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20211121083537.612473-1-jernej.skrabec@gmail.com
Diffstat (limited to 'scripts/gdb/linux/config.py')
0 files changed, 0 insertions, 0 deletions