[PATCH 1/2] crypto: sun8i-ce: undo runtime PM changes during driver removal

Herbert Xu herbert at gondor.apana.org.au
Mon May 5 05:28:06 PDT 2025


On Thu, May 01, 2025 at 10:06:50PM +0300, Ovidiu Panait wrote:
> The pm_runtime_use_autosuspend() call must be undone with
> pm_runtime_dont_use_autosuspend() at driver exit, but this is not
> currently handled in the driver.
> 
> To fix this issue and at the same time simplify error handling, switch
> to devm_pm_runtime_enable(). It will call both pm_runtime_disable() and
> pm_runtime_dont_use_autosuspend() during driver removal.
> 
> Fixes: 06f751b61329 ("crypto: allwinner - Add sun8i-ce Crypto Engine")
> Signed-off-by: Ovidiu Panait <ovidiu.panait.oss at gmail.com>
> ---
>  .../crypto/allwinner/sun8i-ce/sun8i-ce-core.c   | 17 ++++++-----------
>  1 file changed, 6 insertions(+), 11 deletions(-)

All applied.  Thanks.
-- 
Email: Herbert Xu <herbert at gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt



More information about the linux-arm-kernel mailing list