search for: 2aaf9fe

Displaying 1 result from an estimated 1 matches for "2aaf9fe".

2015 Nov 07
1
[PATCH] drm: fix issue by messing up runpm usage_counter
...after unload. This patch fixes that allowing me to load nouveau later with runpm=1 so, that the device is put into sleep state. --- drm/nouveau/nouveau_drm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drm/nouveau/nouveau_drm.c b/drm/nouveau/nouveau_drm.c index 5b1746b..2aaf9fe 100644 --- a/drm/nouveau/nouveau_drm.c +++ b/drm/nouveau/nouveau_drm.c @@ -481,7 +481,8 @@ nouveau_drm_unload(struct drm_device *dev) { struct nouveau_drm *drm = nouveau_drm(dev); - pm_runtime_get_sync(dev->dev); + if (atomic_read(&dev->dev->power.usage_count) == 0) + pm_runtime_...