• Bjorn Helgaas's avatar
    PCI/portdrv: Disable port driver in compat mode · 79a01119
    Bjorn Helgaas authored
    The "pcie_ports=compat" kernel parameter sets pcie_ports_disabled, which is
    intended to disable the PCIe port driver.  But even when it was disabled,
    we registered pcie_portdriver so we could work around a BIOS PME issue (see
    fe31e697 ("PCI/PCIe: Clear Root PME Status bits early during system
    resume")).
    
    Registering the driver meant that the pcie_portdrv_probe() path called
    pci_enable_device(), pci_save_state(), pm_runtime_set_autosuspend_delay(),
    pm_runtime_use_autosuspend(), etc., even when the driver was disabled.
    
    We've since moved the BIOS PME workaround from the port driver to the core,
    so stop registering the PCIe port driver in compat mode.
    
    This means "pcie_ports=compat" will now be basically the same as turning
    off CONFIG_PCIEPORTBUS completely.
    Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
    Reviewed-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    79a01119
portdrv_core.c 14.2 KB