]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
nvme-pci: add debug message on fail to read CSTS
authorGerd Bayer <gbayer@linux.ibm.com>
Fri, 24 Oct 2025 11:05:32 +0000 (13:05 +0200)
committerKeith Busch <kbusch@kernel.org>
Mon, 1 Dec 2025 21:45:57 +0000 (13:45 -0800)
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>
drivers/nvme/host/pci.c

index 9a7616aa6889be3b89366e570c106c96fb0bff9b..a9fc8ecdea4854c7561c6841b54f2207f16ec4df 100644 (file)
@@ -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;
        }