* Ignore device provided subnqn.
*/
NVME_QUIRK_IGNORE_DEV_SUBNQN = (1 << 8),
-
- /*
- * Do not disable nvme when suspending(s2idle)
- */
- NVME_QUIRK_NO_DISABLE = (1 << 15),
};
/*
#include <linux/types.h>
#include <linux/io-64-nonatomic-lo-hi.h>
#include <linux/sed-opal.h>
-#include <linux/suspend.h>
#include "nvme.h"
{
struct pci_dev *pdev = to_pci_dev(dev);
struct nvme_dev *ndev = pci_get_drvdata(pdev);
- struct nvme_ctrl *ctrl = &ndev->ctrl;
-
- if (!(pm_suspend_via_s2idle() && (ctrl->quirks & NVME_QUIRK_NO_DISABLE)))
- nvme_dev_disable(ndev, true);
+ nvme_dev_disable(ndev, true);
return 0;
}
.driver_data = NVME_QUIRK_LIGHTNVM, },
{ PCI_DEVICE(0x1d1d, 0x2601), /* CNEX Granby */
.driver_data = NVME_QUIRK_LIGHTNVM, },
- { PCI_VDEVICE(SK_HYNIX, 0x1527), /* Sk Hynix */
- .driver_data = NVME_QUIRK_NO_DISABLE, },
{ PCI_DEVICE_CLASS(PCI_CLASS_STORAGE_EXPRESS, 0xffffff) },
{ PCI_DEVICE(PCI_VENDOR_ID_APPLE, 0x2001) },
{ PCI_DEVICE(PCI_VENDOR_ID_APPLE, 0x2003) },