diff options
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r-- | drivers/pci/pci.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index f9abe84cf5e0..5c5adef85bd7 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
@@ -2613,6 +2613,10 @@ void __weak pcibios_set_master(struct pci_dev *dev) | |||
2613 | { | 2613 | { |
2614 | u8 lat; | 2614 | u8 lat; |
2615 | 2615 | ||
2616 | /* The latency timer doesn't apply to PCIe (either Type 0 or Type 1) */ | ||
2617 | if (pci_is_pcie(dev)) | ||
2618 | return; | ||
2619 | |||
2616 | pci_read_config_byte(dev, PCI_LATENCY_TIMER, &lat); | 2620 | pci_read_config_byte(dev, PCI_LATENCY_TIMER, &lat); |
2617 | if (lat < 16) | 2621 | if (lat < 16) |
2618 | lat = (64 <= pcibios_max_latency) ? 64 : pcibios_max_latency; | 2622 | lat = (64 <= pcibios_max_latency) ? 64 : pcibios_max_latency; |