summaryrefslogtreecommitdiff
path: root/sys-kernel/linux-image-redcore/files/5.6-nvme-suspend-resume-workaround.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-05-16 20:45:52 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-05-16 20:45:52 +0100
commitf85f96e3480ed35cff0c5d1d854e09e3c8870809 (patch)
tree1651d5337e6a38f6b931d82aa8e9f7bb0417dfef /sys-kernel/linux-image-redcore/files/5.6-nvme-suspend-resume-workaround.patch
parent67472988e49cc1cf2f4b4305751af18b79bd14d4 (diff)
sys-kernel/linux-{image,sources}-redcore : version bump (v5.6.13)
Diffstat (limited to 'sys-kernel/linux-image-redcore/files/5.6-nvme-suspend-resume-workaround.patch')
-rw-r--r--sys-kernel/linux-image-redcore/files/5.6-nvme-suspend-resume-workaround.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys-kernel/linux-image-redcore/files/5.6-nvme-suspend-resume-workaround.patch b/sys-kernel/linux-image-redcore/files/5.6-nvme-suspend-resume-workaround.patch
new file mode 100644
index 00000000..684a939f
--- /dev/null
+++ b/sys-kernel/linux-image-redcore/files/5.6-nvme-suspend-resume-workaround.patch
@@ -0,0 +1,12 @@
+diff -Naur linux-5.2.14-nvme-resume/drivers/nvme/host/pci.c linux-5.2.14-nvme/drivers/nvme/host/pci.c
+--- linux-5.2.14-nvme-resume/drivers/nvme/host/pci.c 2019-09-11 21:23:38.746030937 +0200
++++ linux-5.2.14-nvme/drivers/nvme/host/pci.c 2019-09-11 23:29:45.638351764 +0200
+@@ -1072,6 +1072,8 @@
+ u16 start, end;
+ int found;
+
++ if (!nvme_cqe_pending(nvmeq))
++ return 0;
+ /*
+ * For a poll queue we need to protect against the polling thread
+ * using the CQ lock. For normal interrupt driven threads we have