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:
1ce1e41
)
drm/radeon: don't allow device to be opened if powered down
author
Dave Airlie
<airlied@redhat.com>
Wed, 22 Sep 2010 02:31:46 +0000
(12:31 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Wed, 22 Sep 2010 02:32:46 +0000
(12:32 +1000)
If the switcheroo has switched the device off, don't let X open it.
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_kms.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/radeon/radeon_kms.c
b/drivers/gpu/drm/radeon/radeon_kms.c
index
5eee3c4
..
8fbbe1c
100644
(file)
--- a/
drivers/gpu/drm/radeon/radeon_kms.c
+++ b/
drivers/gpu/drm/radeon/radeon_kms.c
@@
-203,6
+203,10
@@
int radeon_info_ioctl(struct drm_device *dev, void *data, struct drm_file *filp)
*/
int radeon_driver_firstopen_kms(struct drm_device *dev)
{
+ struct radeon_device *rdev = dev->dev_private;
+
+ if (rdev->powered_down)
+ return -EINVAL;
return 0;
}