]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau: fail runtime pm properly.
authorDave Airlie <airlied@redhat.com>
Wed, 26 Mar 2014 04:09:37 +0000 (14:09 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 27 Mar 2014 02:20:37 +0000 (02:20 +0000)
commit82df8913ac3c797be31e7f365e533f96c5bf57f2
tree8c54c687948f03ff4a261550c9e5bd454fe6aab0
parentfd4fba8830b1ee306ee63c8e600ca8e6aca8b967
drm/nouveau: fail runtime pm properly.

If we were on a non-optimus device, we'd return -EINVAL, this would
lead to the over engineered runtime pm system to go into an error
state, subsequent get_sync's would fail, so we'd never be able
to open the device again.

(like really get_sync shouldn't fail if the device isn't powered
down).

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/nouveau/nouveau_drm.c