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
152af05c
Commit
152af05c
authored
Nov 05, 2007
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dipm-fix' into upstream-fixes
parents
17bd9a2f
f5456b63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
drivers/ata/libata-core.c
drivers/ata/libata-core.c
+10
-8
No files found.
drivers/ata/libata-core.c
View file @
152af05c
...
...
@@ -676,10 +676,11 @@ static int ata_dev_set_dipm(struct ata_device *dev, enum link_pm policy)
if
(
rc
)
return
rc
;
/* disable DIPM */
if
(
ata_dev_enabled
(
dev
)
&&
(
dev
->
flags
&
ATA_DFLAG_DIPM
))
err_mask
=
ata_dev_set_feature
(
dev
,
SETFEATURES_SATA_DISABLE
,
SATA_DIPM
);
/*
* we don't have to disable DIPM since IPM flags
* disallow transitions to SLUMBER, which effectively
* disable DIPM if it does not support PARTIAL
*/
break
;
case
NOT_AVAILABLE
:
case
MAX_PERFORMANCE
:
...
...
@@ -689,10 +690,11 @@ static int ata_dev_set_dipm(struct ata_device *dev, enum link_pm policy)
if
(
rc
)
return
rc
;
/* disable DIPM */
if
(
ata_dev_enabled
(
dev
)
&&
(
dev
->
flags
&
ATA_DFLAG_DIPM
))
err_mask
=
ata_dev_set_feature
(
dev
,
SETFEATURES_SATA_DISABLE
,
SATA_DIPM
);
/*
* we don't have to disable DIPM since IPM flags
* disallow all transitions which effectively
* disable DIPM anyway.
*/
break
;
}
...
...
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