summaryrefslogtreecommitdiff
path: root/sys-kernel/linux-sources-redcore-lts/files/5.4-nvme-pci-more-info.patch
blob: d4c88dc04179022174d2f7284e88e5adc6f9796f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
diff -Naur linux-5.3.1/drivers/nvme/host/pci.c linux-5.3.1-p/drivers/nvme/host/pci.c
--- linux-5.3.1/drivers/nvme/host/pci.c	2019-09-21 07:19:47.000000000 +0200
+++ linux-5.3.1-p/drivers/nvme/host/pci.c	2019-09-27 14:46:38.567818352 +0200
@@ -2524,8 +2524,11 @@
 	}
 
 	result = nvme_init_identify(&dev->ctrl);
-	if (result)
+	if (result) {
+		dev_warn(dev->ctrl.device,
+			"nvme_init_identify() failed\n");
 		goto out;
+	}
 
 	if (dev->ctrl.oacs & NVME_CTRL_OACS_SEC_SUPP) {
 		if (!dev->ctrl.opal_dev)
@@ -2547,13 +2550,19 @@
 
 	if (dev->ctrl.hmpre) {
 		result = nvme_setup_host_mem(dev);
-		if (result < 0)
+		if (result < 0) {
+			dev_warn(dev->ctrl.device,
+				"hmpre - nvme_setup_host_mem() failed\n");
 			goto out;
+		}
 	}
 
 	result = nvme_setup_io_queues(dev);
-	if (result)
+	if (result) {
+		dev_warn(dev->ctrl.device,
+			"nvme_setup_io_queues() failed\n");
 		goto out;
+	}
 
 	/*
 	 * Keep the controller around but remove all namespaces if we don't have