diff options
| -rw-r--r-- | drivers/pci/pcie/portdrv_pci.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/pci/pcie/portdrv_pci.c b/drivers/pci/pcie/portdrv_pci.c index 08c243ab034e..ed4d09498337 100644 --- a/drivers/pci/pcie/portdrv_pci.c +++ b/drivers/pci/pcie/portdrv_pci.c | |||
| @@ -185,14 +185,6 @@ static const struct dev_pm_ops pcie_portdrv_pm_ops = { | |||
| 185 | #endif /* !PM */ | 185 | #endif /* !PM */ |
| 186 | 186 | ||
| 187 | /* | 187 | /* |
| 188 | * PCIe port runtime suspend is broken for some chipsets, so use a | ||
| 189 | * black list to disable runtime PM for these chipsets. | ||
| 190 | */ | ||
| 191 | static const struct pci_device_id port_runtime_pm_black_list[] = { | ||
| 192 | { /* end: all zeroes */ } | ||
| 193 | }; | ||
| 194 | |||
| 195 | /* | ||
| 196 | * pcie_portdrv_probe - Probe PCI-Express port devices | 188 | * pcie_portdrv_probe - Probe PCI-Express port devices |
| 197 | * @dev: PCI-Express port device being probed | 189 | * @dev: PCI-Express port device being probed |
| 198 | * | 190 | * |
| @@ -225,16 +217,11 @@ static int pcie_portdrv_probe(struct pci_dev *dev, | |||
| 225 | * it by default. | 217 | * it by default. |
| 226 | */ | 218 | */ |
| 227 | dev->d3cold_allowed = false; | 219 | dev->d3cold_allowed = false; |
| 228 | if (!pci_match_id(port_runtime_pm_black_list, dev)) | ||
| 229 | pm_runtime_put_noidle(&dev->dev); | ||
| 230 | |||
| 231 | return 0; | 220 | return 0; |
| 232 | } | 221 | } |
| 233 | 222 | ||
| 234 | static void pcie_portdrv_remove(struct pci_dev *dev) | 223 | static void pcie_portdrv_remove(struct pci_dev *dev) |
| 235 | { | 224 | { |
| 236 | if (!pci_match_id(port_runtime_pm_black_list, dev)) | ||
| 237 | pm_runtime_get_noresume(&dev->dev); | ||
| 238 | pcie_port_device_remove(dev); | 225 | pcie_port_device_remove(dev); |
| 239 | pci_disable_device(dev); | 226 | pci_disable_device(dev); |
| 240 | } | 227 | } |
