]> git.baikalelectronics.ru Git - kernel.git/commit
nvme initialize core quirks before calling nvme_init_subsystem
authorPankaj Raghav <p.raghav@samsung.com>
Thu, 1 Dec 2022 12:52:34 +0000 (13:52 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 6 Dec 2022 08:05:59 +0000 (09:05 +0100)
commita3db5dc7f6dd3612fb2f6b84ff605f971c64417f
tree36f4817d7117543f1b8fe88d9e35151d9cfea491
parentd8c295b33a4280bd86e564fe3062c522432d244e
nvme initialize core quirks before calling nvme_init_subsystem

A device might have a core quirk for NVME_QUIRK_IGNORE_DEV_SUBNQN
(such as Samsung X5) but it would still give a:

    "missing or invalid SUBNQN field"

warning as core quirks are filled after calling nvme_init_subnqn.  Fill
ctrl->quirks from struct core_quirks before calling nvme_init_subsystem
to fix this.

Tested on a Samsung X5.

Fixes: f783f9936d5a ("nvme: track subsystems")
Signed-off-by: Pankaj Raghav <p.raghav@samsung.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c