]> git.baikalelectronics.ru Git - kernel.git/commit
panfrost: Properly undo pm_runtime_enable when deferring a probe
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Wed, 23 Oct 2019 12:21:57 +0000 (14:21 +0200)
committerRob Herring <robh@kernel.org>
Wed, 23 Oct 2019 17:50:47 +0000 (12:50 -0500)
commit121f47a704fc10512bcfb819d82b91e1383cf25c
treede30587dccb05942858295e61a1df626f86bbd52
parent568631a3a9d279304ddabd47494c18a7fa57fc8c
panfrost: Properly undo pm_runtime_enable when deferring a probe

When deferring the probe because of a missing regulator, we were calling
pm_runtime_disable even if pm_runtime_enable wasn't called.

Move the call to pm_runtime_disable to the right place.

Fixes: 66e248211be6 ("drm/panfrost: Rework runtime PM initialization")
Reported-by: Chen-Yu Tsai <wens@csie.org>
Cc: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20191023122157.32067-1-tomeu.vizoso@collabora.com
drivers/gpu/drm/panfrost/panfrost_drv.c