mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 00:22:00 +02:00
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: Wilfred Mallawa <wilfred.mallawa@wdc.com> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Gerd Bayer <gbayer@linux.ibm.com> Signed-off-by: Keith Busch <kbusch@kernel.org>
This commit is contained in:
parent
c9adfb5b68
commit
78723fe309
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user