[PATCH v3] nvme/pci: Add quick suspend quirk for Sc7280 Platform
Nitin Rawat (QUIC)
quic_nitirawa at quicinc.com
Thu Feb 10 12:58:19 PST 2022
Hi Keith,
My Bad..Uploaded wrong patch from my local. I have uploaded the tested patch now.
Regards,
Nitin
-----Original Message-----
From: Nitin Rawat <quic_nitirawa at quicinc.com>
Sent: Friday, February 11, 2022 2:23 AM
To: Keith Busch <kbusch at kernel.org>; Jens Axboe <axboe at fb.com>; Sagi Grimberg <sagi at grimberg.me>; linux-nvme at lists.infradead.org; linux-kernel at vger.kernel.org
Cc: Nitin Rawat (QUIC) <quic_nitirawa at quicinc.com>; Sajida Bhanu (Temp) (QUIC) <quic_c_sbhanu at quicinc.com>
Subject: [PATCH v3] nvme/pci: Add quick suspend quirk for Sc7280 Platform
Enable quick suspend quirks for Sc7280 platform, where power to nvme device is removed during suspend-resume process. This is done to avoid the failure dring resume.
This enables simple suspend path for this platform.
Signed-off-by: Nitin Rawat <quic_nitirawa at quicinc.com>
Signed-off-by: Shaik Sajida Bhanu <quic_c_sbhanu at quicinc.com>
---
Change from v2-v3:
* changed if/else condition
---
drivers/nvme/host/pci.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index 6a99ed6..1dff749 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -3034,6 +3034,15 @@ static unsigned long check_vendor_combination_bug(struct pci_dev *pdev)
return NVME_QUIRK_SIMPLE_SUSPEND;
}
+ if (of_machine_is_compatible("qcom,sc7280")) {
+ /*
+ * Append quick suspend quirks for sc7280 platforms
+ * so that simple suspend path is executed for this
+ * platform to avoid any resume failure.
+ */
+ return NVME_QUIRK_SIMPLE_SUSPEND;
+ }
+
return 0;
}
--
2.7.4
More information about the Linux-nvme
mailing list