nvme-pci: add quirks for device 126f:1001
authorWentao Guan <guanwentao@uniontech.com>
Tue, 22 Apr 2025 12:17:25 +0000 (20:17 +0800)
committerChristoph Hellwig <hch@lst.de>
Tue, 29 Apr 2025 13:00:34 +0000 (08:00 -0500)
commit5b960f92ac3e5b4d7f60a506a6b6735eead1da01
treebb73c771b9360b29e65ef0e1085b13eaab1b231f
parenta75401227eeb827b1a162df1aa9d5b33da921c43
nvme-pci: add quirks for device 126f:1001

This commit adds NVME_QUIRK_NO_DEEPEST_PS and NVME_QUIRK_BOGUS_NID for
device [126f:1001].

It is similar to commit e89086c43f05 ("drivers/nvme: Add quirks for
device 126f:2262")

Diff is according the dmesg, use NVME_QUIRK_IGNORE_DEV_SUBNQN.

dmesg | grep -i nvme0:
  nvme nvme0: pci function 0000:01:00.0
  nvme nvme0: missing or invalid SUBNQN field.
  nvme nvme0: 12/0/0 default/read/poll queues

Link:https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e89086c43f0500bc7c4ce225495b73b8ce234c1f
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
Signed-off-by: WangYuli <wangyuli@uniontech.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/pci.c