From 9cb9672adf37aabd4ee8ee880c304d6245d08574 Mon Sep 17 00:00:00 2001 From: Liu Yu Date: Fri, 18 Nov 2016 10:04:46 +0800 Subject: [PATCH] pci: prohibit storage probe delay of virtio block device virtio block device has no async probe path, so needn't probe delay this patch will reduce about 5s kernel booting time. Signed-off-by: Xiaoming Gao Signed-off-by: Liu Yu Signed-off-by: Jianping Liu --- drivers/pci/pci-driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c index 5af35ef955c2..8a2c84534903 100644 --- a/drivers/pci/pci-driver.c +++ b/drivers/pci/pci-driver.c @@ -427,7 +427,7 @@ static int __pci_device_probe(struct pci_driver *drv, struct pci_dev *pci_dev) id = pci_match_device(drv, pci_dev); if (id) { - if ((pci_dev->class>>16) == PCI_BASE_CLASS_STORAGE) + if ((pci_dev->class>>16) == PCI_BASE_CLASS_STORAGE && pci_dev->vendor != 0x1af4) storage_probe_delay(&pci_dev->dev); error = pci_call_probe(drv, pci_dev, id); }