Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
13bb9cc8
Commit
13bb9cc8
authored
Sep 12, 2012
by
Dave Airlie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm: allow open of dynamic off devices.
Signed-off-by:
Dave Airlie
<
airlied@redhat.com
>
parent
246efa4a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
drivers/gpu/drm/drm_fops.c
drivers/gpu/drm/drm_fops.c
+1
-1
include/drm/drmP.h
include/drm/drmP.h
+1
-0
No files found.
drivers/gpu/drm/drm_fops.c
View file @
13bb9cc8
...
...
@@ -219,7 +219,7 @@ static int drm_open_helper(struct inode *inode, struct file *filp,
return
-
EBUSY
;
/* No exclusive opens */
if
(
!
drm_cpu_valid
())
return
-
EINVAL
;
if
(
dev
->
switch_power_state
!=
DRM_SWITCH_POWER_ON
)
if
(
dev
->
switch_power_state
!=
DRM_SWITCH_POWER_ON
&&
dev
->
switch_power_state
!=
DRM_SWITCH_POWER_DYNAMIC_OFF
)
return
-
EINVAL
;
DRM_DEBUG
(
"pid = %d, minor = %d
\n
"
,
task_pid_nr
(
current
),
minor_id
);
...
...
include/drm/drmP.h
View file @
13bb9cc8
...
...
@@ -1220,6 +1220,7 @@ struct drm_device {
#define DRM_SWITCH_POWER_ON 0
#define DRM_SWITCH_POWER_OFF 1
#define DRM_SWITCH_POWER_CHANGING 2
#define DRM_SWITCH_POWER_DYNAMIC_OFF 3
static
__inline__
int
drm_core_check_feature
(
struct
drm_device
*
dev
,
int
feature
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment