OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9b631f
)
drm/panfrost: Disable PM on probe failure
author
Robin Murphy
<robin.murphy@arm.com>
Fri, 3 May 2019 15:31:43 +0000
(16:31 +0100)
committer
Rob Herring
<robh@kernel.org>
Fri, 3 May 2019 20:36:02 +0000
(15:36 -0500)
Make sure to disable runtime PM again if probe fails after we've enabled
it. Otherwise, any subsequent attempt to re-probe starts triggering
"Unbalanced pm_runtime_enable!" assertions from the driver core.
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link:
https://patchwork.freedesktop.org/patch/msgid/2487391e7646cabbc52e9b4c20182e39d3f61859.1556195258.git.robin.murphy@arm.com
drivers/gpu/drm/panfrost/panfrost_drv.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/panfrost/panfrost_drv.c
b/drivers/gpu/drm/panfrost/panfrost_drv.c
index
27d04bd
..
2f5c886
100644
(file)
--- a/
drivers/gpu/drm/panfrost/panfrost_drv.c
+++ b/
drivers/gpu/drm/panfrost/panfrost_drv.c
@@
-418,6
+418,7
@@
static int panfrost_probe(struct platform_device *pdev)
err_out1:
panfrost_device_fini(pfdev);
err_out0:
+ pm_runtime_disable(pfdev->dev);
drm_dev_put(ddev);
return err;
}