Skip to content

Commit a6ee7f1

Browse files
author
Christoph Hellwig
committed
nvme-pci: call nvme_pci_configure_admin_queue from nvme_pci_enable
nvme_pci_configure_admin_queue is called right after nvme_pci_enable, and it's work is undone by nvme_dev_disable. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Keith Busch <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Reviewed-by: Chaitanya Kulkarni <[email protected]> Tested-by Gerd Bayer <[email protected]>
1 parent 3f30a79 commit a6ee7f1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

drivers/nvme/host/pci.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2639,7 +2639,8 @@ static int nvme_pci_enable(struct nvme_dev *dev)
26392639

26402640
pci_enable_pcie_error_reporting(pdev);
26412641
pci_save_state(pdev);
2642-
return 0;
2642+
2643+
return nvme_pci_configure_admin_queue(dev);
26432644

26442645
disable:
26452646
pci_disable_device(pdev);
@@ -2829,10 +2830,6 @@ static void nvme_reset_work(struct work_struct *work)
28292830
if (result)
28302831
goto out_unlock;
28312832

2832-
result = nvme_pci_configure_admin_queue(dev);
2833-
if (result)
2834-
goto out_unlock;
2835-
28362833
if (!dev->ctrl.admin_q) {
28372834
result = nvme_pci_alloc_admin_tag_set(dev);
28382835
if (result)

0 commit comments

Comments
 (0)