]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Dec 2022 10:30:46 +0000 (11:30 +0100)
commit40a81843e2a330b079ddfdc5af80568827d77d36
treeaf78841cc8a92cf905021917abb9add478a6b7b5
parent5f2f072b26e5aaf427ba7074156492ea610d1029
nvme initialize core quirks before calling nvme_init_subsystem

[ Upstream commit a3db5dc7f6dd3612fb2f6b84ff605f971c64417f ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/core.c