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
Kirill Smelkov
linux
Commits
d02c0353
Commit
d02c0353
authored
Sep 03, 2003
by
Bartlomiej Zolnierkiewicz
Committed by
Linus Torvalds
Sep 03, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ide: fix PM with ide-default driver
From Benjamin Herrenschmidt <benh@kernel.crashing.org>
parent
9028b7b8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
drivers/ide/ide.c
drivers/ide/ide.c
+9
-0
No files found.
drivers/ide/ide.c
View file @
d02c0353
...
...
@@ -2406,6 +2406,13 @@ static ide_startstop_t default_abort (ide_drive_t *drive, const char *msg)
return
ide_abort
(
drive
,
msg
);
}
static
ide_startstop_t
default_start_power_step
(
ide_drive_t
*
drive
,
struct
request
*
rq
)
{
rq
->
pm
->
pm_step
=
ide_pm_state_completed
;
return
ide_stopped
;
}
static
void
setup_driver_defaults
(
ide_driver_t
*
d
)
{
if
(
d
->
cleanup
==
NULL
)
d
->
cleanup
=
default_cleanup
;
...
...
@@ -2420,6 +2427,8 @@ static void setup_driver_defaults (ide_driver_t *d)
if
(
d
->
capacity
==
NULL
)
d
->
capacity
=
default_capacity
;
if
(
d
->
special
==
NULL
)
d
->
special
=
default_special
;
if
(
d
->
attach
==
NULL
)
d
->
attach
=
default_attach
;
if
(
d
->
start_power_step
==
NULL
)
d
->
start_power_step
=
default_start_power_step
;
}
int
ide_register_subdriver
(
ide_drive_t
*
drive
,
ide_driver_t
*
driver
,
int
version
)
...
...
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