]> git.baikalelectronics.ru Git - kernel.git/commitdiff
nvme-pci: disable namespace identifiers for the MAXIO MAP1002/1202
authorChristoph Hellwig <hch@lst.de>
Mon, 11 Apr 2022 06:05:27 +0000 (08:05 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 15 Apr 2022 04:56:17 +0000 (06:56 +0200)
The MAXIO MAP1002/1202 controllers reports completely bogus Namespace
identifiers that even change after suspend cycles.  Disable using
the Identifiers entirely.

Reported-by: 金韬 <me@kingtous.cn>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Tested-by: 金韬 <me@kingtous.cn>
drivers/nvme/host/pci.c

index d817ca17463edfba84dc27b50c5652998bbf576f..c45dbe8a7dcd7585f00b56930b13c33160e4a116 100644 (file)
@@ -3447,6 +3447,10 @@ static const struct pci_device_id nvme_id_table[] = {
                .driver_data = NVME_QUIRK_NO_DEEPEST_PS, },
        { PCI_DEVICE(0x2646, 0x2263),   /* KINGSTON A2000 NVMe SSD  */
                .driver_data = NVME_QUIRK_NO_DEEPEST_PS, },
+       { PCI_DEVICE(0x1e4B, 0x1002),   /* MAXIO MAP1002 */
+               .driver_data = NVME_QUIRK_BOGUS_NID, },
+       { PCI_DEVICE(0x1e4B, 0x1202),   /* MAXIO MAP1202 */
+               .driver_data = NVME_QUIRK_BOGUS_NID, },
        { PCI_DEVICE(PCI_VENDOR_ID_AMAZON, 0x0061),
                .driver_data = NVME_QUIRK_DMA_ADDRESS_BITS_48, },
        { PCI_DEVICE(PCI_VENDOR_ID_AMAZON, 0x0065),