提交 5222454c 编写于 作者: D Dave Airlie

drm/radeon: don't allow device to be opened if powered down

If the switcheroo has switched the device off, don't let X open it.
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 1ce1e41c
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册