Re: [PATCH] spi: spi-ti-qspi: call pm_runtime_put on pm_runtime_get failure

From: Markus Elfring
Date: Tue Jun 02 2020 - 04:40:59 EST


> The counter is incremented via pm_runtime_get even in failure case.
> To correct the counter call pm_runtime_put in case of failure, too.

How do you think about a wording variant like the following?

Change description:
The PM runtime reference counter is generally incremented by a call of
the function âpm_runtime_get_syncâ.
Thus call the function âpm_runtime_put_autosuspendâ also in one error case
to keep the reference counting consistent.


Would you like to add the tag âFixesâ to the commit message?

Regards,
Markus