Commit 78723fe3 authored by Gerd Bayer's avatar Gerd Bayer Committed by Keith Busch
Browse files

nvme-pci: add debug message on fail to read CSTS



Add a debug log spelling out that reading the CSTS register failed - to
distinguish this from other reasons for ENODEV.

Reviewed-by: default avatarWilfred Mallawa <wilfred.mallawa@wdc.com>
Reviewed-by: default avatarChaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarGerd Bayer <gbayer@linux.ibm.com>
Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
parent c9adfb5b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2977,6 +2977,7 @@ static int nvme_pci_enable(struct nvme_dev *dev)
	pci_set_master(pdev);

	if (readl(dev->bar + NVME_REG_CSTS) == -1) {
		dev_dbg(dev->ctrl.device, "reading CSTS register failed\n");
		result = -ENODEV;
		goto disable;
	}