|
@@ -2492,8 +2492,10 @@ static unsigned long check_vendor_combination_bug(struct pci_dev *pdev)
|
|
|
static void nvme_async_probe(void *data, async_cookie_t cookie)
|
|
|
{
|
|
|
struct nvme_dev *dev = data;
|
|
|
+
|
|
|
nvme_reset_ctrl_sync(&dev->ctrl);
|
|
|
flush_work(&dev->ctrl.scan_work);
|
|
|
+ nvme_put_ctrl(&dev->ctrl);
|
|
|
}
|
|
|
|
|
|
static int nvme_probe(struct pci_dev *pdev, const struct pci_device_id *id)
|
|
@@ -2540,6 +2542,7 @@ static int nvme_probe(struct pci_dev *pdev, const struct pci_device_id *id)
|
|
|
|
|
|
dev_info(dev->ctrl.device, "pci function %s\n", dev_name(&pdev->dev));
|
|
|
|
|
|
+ nvme_get_ctrl(&dev->ctrl);
|
|
|
async_schedule(nvme_async_probe, dev);
|
|
|
|
|
|
return 0;
|