]> git.baikalelectronics.ru Git - kernel.git/commit
media: hantro: do a PM resume earlier
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 28 Apr 2021 06:27:55 +0000 (08:27 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 10 May 2021 09:36:33 +0000 (11:36 +0200)
commitc2000cdc1254f52fd0720cdbda7355226f152107
tree83b4e17b02b1249e878c0a6fdb24f0eff8c6e1d1
parentd7b1d780c5e2603824e958ef976168410ed499ab
media: hantro: do a PM resume earlier

The device_run() first enables the clock and then
tries to resume PM runtime, checking for errors.

Well, if for some reason the pm_runtime can not resume,
it would be better to detect it beforehand.

So, change the order inside device_run().

Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com>
Fixes: ef3035cb48a6 ("media: add Rockchip VPU JPEG encoder driver")
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/hantro/hantro_drv.c