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
63d15e8c
Commit
63d15e8c
authored
Dec 20, 2017
by
Rafael J. Wysocki
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'pm-pci'
* pm-pci: PCI / PM: Force devices to D0 in pci_pm_thaw_noirq()
parents
56026645
5839ee73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
drivers/pci/pci-driver.c
drivers/pci/pci-driver.c
+6
-1
No files found.
drivers/pci/pci-driver.c
View file @
63d15e8c
...
@@ -1012,7 +1012,12 @@ static int pci_pm_thaw_noirq(struct device *dev)
...
@@ -1012,7 +1012,12 @@ static int pci_pm_thaw_noirq(struct device *dev)
if
(
pci_has_legacy_pm_support
(
pci_dev
))
if
(
pci_has_legacy_pm_support
(
pci_dev
))
return
pci_legacy_resume_early
(
dev
);
return
pci_legacy_resume_early
(
dev
);
pci_update_current_state
(
pci_dev
,
PCI_D0
);
/*
* pci_restore_state() requires the device to be in D0 (because of MSI
* restoration among other things), so force it into D0 in case the
* driver's "freeze" callbacks put it into a low-power state directly.
*/
pci_set_power_state
(
pci_dev
,
PCI_D0
);
pci_restore_state
(
pci_dev
);
pci_restore_state
(
pci_dev
);
if
(
drv
&&
drv
->
pm
&&
drv
->
pm
->
thaw_noirq
)
if
(
drv
&&
drv
->
pm
&&
drv
->
pm
->
thaw_noirq
)
...
...
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