]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme: send Identify with CNS 06h only to I/O controllers
authorMartin George <martinus.gpy@gmail.com>
Thu, 16 Mar 2023 11:50:09 +0000 (17:20 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Apr 2023 10:35:11 +0000 (12:35 +0200)
commitbb0cf2bd636328b129e72f48c01e7dfa8f650d6f
tree564d3ed88e577d503f9eb8f9e7da0690fed6666c
parent3221808c1c6e40f1f8316c934d944c62d10dacdb
nvme: send Identify with CNS 06h only to I/O controllers

[ Upstream commit def84ab600b71ea3fcc422a876d5d0d0daa7d4f3 ]

Identify CNS 06h (I/O Command Set Specific Identify Controller data
structure) is supported only on i/o controllers.

But nvme_init_non_mdts_limits() currently invokes this on all
controllers.  Correct this by ensuring this is sent to I/O
controllers only.

Signed-off-by: Martin George <marting@netapp.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/core.c