On Mon, Sep 09, 2024 at 03:31:39PM GMT, Jinjie Ruan wrote: > It's important to undo pm_runtime_use_autosuspend() with > pm_runtime_dont_use_autosuspend() at driver exit time unless driver > initially enabled pm_runtime with devm_pm_runtime_enable() > (which handles it for you). > > Hence, switch to devm_pm_runtime_enable() to fix it, so the > pm_runtime_disable() in probe error path and remove function > can be removed. > > Fixes: cfdab2cd85ec ("spi: spi-geni-qcom: Set an autosuspend delay of 250 ms") > Signed-off-by: Jinjie Ruan <ruanjinjie@xxxxxxxxxx> > Suggested-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx> > --- > v3: > - Fix it with devm_pm_runtime_enable() as Dmitry suggested. > - Adjust to be the first patch. > - Add suggested-by. > v2: > - Fix it directly instead of use devm_pm_runtime_enable(). > --- > drivers/spi/spi-geni-qcom.c | 13 ++++++------- > 1 file changed, 6 insertions(+), 7 deletions(-) > Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx> -- With best wishes Dmitry