diff options
Diffstat (limited to 'drivers/pci/hotplug/pciehp_hpc.c')
-rw-r--r-- | drivers/pci/hotplug/pciehp_hpc.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/pci/hotplug/pciehp_hpc.c b/drivers/pci/hotplug/pciehp_hpc.c index 5c812b858847..2d2539ba7303 100644 --- a/drivers/pci/hotplug/pciehp_hpc.c +++ b/drivers/pci/hotplug/pciehp_hpc.c | |||
@@ -1417,9 +1417,14 @@ int pcie_init(struct controller * ctrl, struct pcie_device *dev) | |||
1417 | goto abort_free_ctlr; | 1417 | goto abort_free_ctlr; |
1418 | } | 1418 | } |
1419 | 1419 | ||
1420 | rc = get_hp_hw_control_from_firmware(ctrl->pci_dev); | 1420 | if (pciehp_force) { |
1421 | if (rc) | 1421 | dbg("Bypassing BIOS check for pciehp use on %s\n", |
1422 | goto abort_free_ctlr; | 1422 | pci_name(ctrl->pci_dev)); |
1423 | } else { | ||
1424 | rc = get_hp_hw_control_from_firmware(ctrl->pci_dev); | ||
1425 | if (rc) | ||
1426 | goto abort_free_ctlr; | ||
1427 | } | ||
1423 | 1428 | ||
1424 | /* Add this HPC instance into the HPC list */ | 1429 | /* Add this HPC instance into the HPC list */ |
1425 | spin_lock(&list_lock); | 1430 | spin_lock(&list_lock); |