Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
linux-arm
linux-power
Commits
d713e0c8
Commit
d713e0c8
authored
Jul 19, 2021
by
Rafael J. Wysocki
Browse files
Merge branch 'pm-pci' into linux-next
* pm-pci: PCI: Use pci_update_current_state() in pci_enable_device_flags()
parents
4c57d77e
14858dcc
Changes
1
Hide whitespace changes
Inline
Side-by-side
drivers/pci/pci.c
View file @
d713e0c8
...
...
@@ -1906,11 +1906,7 @@ static int pci_enable_device_flags(struct pci_dev *dev, unsigned long flags)
* so that things like MSI message writing will behave as expected
* (e.g. if the device really is in D0 at enable time).
*/
if
(
dev
->
pm_cap
)
{
u16
pmcsr
;
pci_read_config_word
(
dev
,
dev
->
pm_cap
+
PCI_PM_CTRL
,
&
pmcsr
);
dev
->
current_state
=
(
pmcsr
&
PCI_PM_CTRL_STATE_MASK
);
}
pci_update_current_state
(
dev
,
dev
->
current_state
);
if
(
atomic_inc_return
(
&
dev
->
enable_cnt
)
>
1
)
return
0
;
/* already enabled */
...
...
Write
Preview
Supports
Markdown
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