All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] panfrost: Properly undo pm_runtime_enable when deferring a probe
@ 2019-10-23 12:09 ` Tomeu Vizoso
  0 siblings, 0 replies; 12+ messages in thread
From: Tomeu Vizoso @ 2019-10-23 12:09 UTC (permalink / raw)
  To: linux-kernel
  Cc: Tomeu Vizoso, Robin Murphy, Rob Herring, David Airlie,
	Daniel Vetter, dri-devel

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.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Fixes: f4a3c6a44b35 ("drm/panfrost: Disable PM on probe failure")
Cc: Robin Murphy <robin.murphy@arm.com>
---
 drivers/gpu/drm/panfrost/panfrost_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/panfrost/panfrost_drv.c b/drivers/gpu/drm/panfrost/panfrost_drv.c
index bc2ddeb55f5d..f21bc8a7ee3a 100644
--- a/drivers/gpu/drm/panfrost/panfrost_drv.c
+++ b/drivers/gpu/drm/panfrost/panfrost_drv.c
@@ -556,11 +556,11 @@ static int panfrost_probe(struct platform_device *pdev)
 	return 0;
 
 err_out2:
+	pm_runtime_disable(pfdev->dev);
 	panfrost_devfreq_fini(pfdev);
 err_out1:
 	panfrost_device_fini(pfdev);
 err_out0:
-	pm_runtime_disable(pfdev->dev);
 	drm_dev_put(ddev);
 	return err;
 }
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2019-10-24  3:51 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-23 12:09 [PATCH] panfrost: Properly undo pm_runtime_enable when deferring a probe Tomeu Vizoso
2019-10-23 12:09 ` Tomeu Vizoso
2019-10-23 12:21 ` [PATCH v2] " Tomeu Vizoso
2019-10-23 12:21   ` Tomeu Vizoso
2019-10-23 12:49   ` Robin Murphy
2019-10-23 12:49     ` Robin Murphy
2019-10-23 15:49   ` Steven Price
2019-10-23 15:49     ` Steven Price
2019-10-23 17:58     ` Rob Herring
2019-10-23 17:58       ` Rob Herring
2019-10-24  3:51   ` Chen-Yu Tsai
2019-10-24  3:51     ` Chen-Yu Tsai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.