nvme-pci: add NVME_QUIRK_BOGUS_NID for Samsung PM9B1 256G and 512G
authorAugust Wikerfors <git@augustwikerfors.se>
Wed, 16 Nov 2022 17:17:27 +0000 (18:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Aug 2023 16:27:21 +0000 (18:27 +0200)
commit56c79fcae6f344dccc2819384e451d76def35e7f
treec1b17cf9184e1f052a522e56129a07d1462b9bf8
parent3fdaa7fbc81b3822a35c65996e3bb3d44a4768d3
nvme-pci: add NVME_QUIRK_BOGUS_NID for Samsung PM9B1 256G and 512G

commit 688b419c57c13637d95d7879e165fff3dec581eb upstream.

The Samsung PM9B1 512G SSD found in some Lenovo Yoga 7 14ARB7 laptop units
reports eui as 0001000200030004 when resuming from s2idle, causing the
device to be removed with this error in dmesg:

nvme nvme0: identifiers changed for nsid 1

To fix this, add a quirk to ignore namespace identifiers for this device.

Signed-off-by: August Wikerfors <git@augustwikerfors.se>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvme/host/pci.c