File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3217,14 +3217,14 @@ void pci_pm_init(struct pci_dev *dev)
3217
3217
/* find PCI PM capability in list */
3218
3218
pm = pci_find_capability (dev , PCI_CAP_ID_PM );
3219
3219
if (!pm )
3220
- return ;
3220
+ goto poweron ;
3221
3221
/* Check device's ability to generate PME# */
3222
3222
pci_read_config_word (dev , pm + PCI_PM_PMC , & pmc );
3223
3223
3224
3224
if ((pmc & PCI_PM_CAP_VER_MASK ) > 3 ) {
3225
3225
pci_err (dev , "unsupported PM cap regs version (%u)\n" ,
3226
3226
pmc & PCI_PM_CAP_VER_MASK );
3227
- return ;
3227
+ goto poweron ;
3228
3228
}
3229
3229
3230
3230
dev -> pm_cap = pm ;
@@ -3269,6 +3269,7 @@ void pci_pm_init(struct pci_dev *dev)
3269
3269
pci_read_config_word (dev , PCI_STATUS , & status );
3270
3270
if (status & PCI_STATUS_IMM_READY )
3271
3271
dev -> imm_ready = 1 ;
3272
+ poweron :
3272
3273
pci_pm_power_up_and_verify_state (dev );
3273
3274
pm_runtime_forbid (& dev -> dev );
3274
3275
pm_runtime_set_active (& dev -> dev );
You can’t perform that action at this time.
0 commit comments