Re: [PATCH v3 25/79] staging: media: vde: use pm_runtime_resume_and_get()

2021-04-28 Thread Dmitry Osipenko
28.04.2021 10:20, Mauro Carvalho Chehab пишет: > Em Tue, 27 Apr 2021 14:47:01 +0300 > Dmitry Osipenko escreveu: > >> 27.04.2021 13:26, Mauro Carvalho Chehab пишет: >>> @@ -1088,8 +1090,9 @@ static int tegra_vde_remove(struct platform_device >>> *pdev) >>> { >>> struct tegra_vde *vde =

Re: [PATCH v3 25/79] staging: media: vde: use pm_runtime_resume_and_get()

2021-04-28 Thread Mauro Carvalho Chehab
Em Tue, 27 Apr 2021 14:47:01 +0300 Dmitry Osipenko escreveu: > 27.04.2021 13:26, Mauro Carvalho Chehab пишет: > > @@ -1088,8 +1090,9 @@ static int tegra_vde_remove(struct platform_device > > *pdev) > > { > > struct tegra_vde *vde = platform_get_drvdata(pdev); > > struct device *dev =

Re: [PATCH v3 25/79] staging: media: vde: use pm_runtime_resume_and_get()

2021-04-27 Thread Dmitry Osipenko
27.04.2021 13:26, Mauro Carvalho Chehab пишет: > @@ -1088,8 +1090,9 @@ static int tegra_vde_remove(struct platform_device > *pdev) > { > struct tegra_vde *vde = platform_get_drvdata(pdev); > struct device *dev = >dev; > + int ret; > > - pm_runtime_get_sync(dev); > + ret

[PATCH v3 25/79] staging: media: vde: use pm_runtime_resume_and_get()

2021-04-27 Thread Mauro Carvalho Chehab
Commit dd8088d5a896 ("PM: runtime: Add pm_runtime_resume_and_get to deal with usage counter") added pm_runtime_resume_and_get() in order to automatically handle dev->power.usage_count decrement on errors. Use the new API, in order to cleanup the error check logic. Signed-off-by: Mauro Carvalho