nvme: update firmware version after commit
authorDaniel Wagner <dwagner@suse.de>
Mon, 30 Oct 2023 16:00:44 +0000 (17:00 +0100)
committerKeith Busch <kbusch@kernel.org>
Mon, 6 Nov 2023 16:08:11 +0000 (08:08 -0800)
commit983a338b96c8a25b81e773b643f80634358e81bc
tree24a73e9683202d7245199b246bde075b92b99d6d
parent0e32fdd7968eb9a39aa4d4111aef0fda8684af9e
nvme: update firmware version after commit

The firmware version sysfs entry needs to be updated after a successfully
firmware activation.

nvme-cli stopped issuing an Identify Controller command to list the
current firmware information and relies on sysfs showing the current
firmware version.

Reported-by: Kenji Tomonaga <tkenbo@gmail.com>
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Tested-by: Kenji Tomonaga <tkenbo@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Niklas Cassel <niklas.cassel@wdc.com>
[fixed off-by one afi index]
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c