Re: [PATCH] bus: sunxi-rsb: Fix shutdown

From: Maxime Ripard
Date: Mon Nov 22 2021 - 04:07:33 EST


On Sun, 21 Nov 2021 09:35:37 +0100, Jernej Skrabec wrote:
> 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.
>
> [...]

Applied to sunxi/linux.git (sunxi/drivers-for-5.17).

Thanks!
Maxime