Re: [PATCH] spi: sprd: call pm_runtime_put if pm_runtime_get_sync fails

2020-06-02 Thread Baolin Wang
Hi, On Tue, Jun 2, 2020 at 1:20 PM Navid Emamdoost wrote: > > Call to pm_runtime_get_sync increments counter even in case of > failure leading to incorrect ref count. > Call pm_runtime_put_noidle if pm_runtime_get_sync fails. > > Signed-off-by: Navid Emamdoost Looks good to me. Thanks

Re: [PATCH] spi: sprd: call pm_runtime_put if pm_runtime_get_sync fails

2020-06-02 Thread Markus Elfring
> Call to pm_runtime_get_sync increments counter even in case of > failure leading to incorrect ref count. > Call pm_runtime_put_noidle if pm_runtime_get_sync fails. How do you think about a wording variant like the following? Change description: The PM runtime reference counter is

[PATCH] spi: sprd: call pm_runtime_put if pm_runtime_get_sync fails

2020-06-01 Thread Navid Emamdoost
Call to pm_runtime_get_sync increments counter even in case of failure leading to incorrect ref count. Call pm_runtime_put_noidle if pm_runtime_get_sync fails. Signed-off-by: Navid Emamdoost --- drivers/spi/spi-sprd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-sprd.c