Merge tag 'for-5.18/drivers-2022-04-01' of git://git.kernel.dk/linux-block
[linux-block.git] / drivers / nvme / host / pci.c
index 2e98ac3f3ad684feaa5ece1cd424306e7d91bd08..d817ca17463edfba84dc27b50c5652998bbf576f 100644 (file)
@@ -45,7 +45,7 @@
 #define NVME_MAX_SEGS  127
 
 static int use_threaded_interrupts;
-module_param(use_threaded_interrupts, int, 0);
+module_param(use_threaded_interrupts, int, 0444);
 
 static bool use_cmb_sqes = true;
 module_param(use_cmb_sqes, bool, 0444);
@@ -3467,7 +3467,10 @@ static const struct pci_device_id nvme_id_table[] = {
                                NVME_QUIRK_128_BYTES_SQES |
                                NVME_QUIRK_SHARED_TAGS |
                                NVME_QUIRK_SKIP_CID_GEN },
-
+       { PCI_DEVICE(0x144d, 0xa808),   /* Samsung X5 */
+               .driver_data =  NVME_QUIRK_DELAY_BEFORE_CHK_RDY|
+                               NVME_QUIRK_NO_DEEPEST_PS |
+                               NVME_QUIRK_IGNORE_DEV_SUBNQN, },
        { PCI_DEVICE_CLASS(PCI_CLASS_STORAGE_EXPRESS, 0xffffff) },
        { 0, }
 };