diff options
author | Aleksandr Miloserdov <a.miloserdov@yadro.com> | 2022-11-15 14:58:10 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2022-11-21 10:35:58 +0300 |
commit | 68c5444c317208f5a114f671140373f47f0a2cf6 (patch) | |
tree | 7e5c1ab4302d53b77102d9e7e69b40f9863c9c09 /drivers/nvme/target/admin-cmd.c | |
parent | 23855abdc4be03e17564f665b5d0029ef27abf7b (diff) | |
download | linux-68c5444c317208f5a114f671140373f47f0a2cf6.tar.xz |
nvmet: expose firmware revision to configfs
Allow user to set currently active firmware revision
Reviewed-by: Konstantin Shelekhin <k.shelekhin@yadro.com>
Reviewed-by: Dmitriy Bogdanov <d.bogdanov@yadro.com>
Signed-off-by: Aleksandr Miloserdov <a.miloserdov@yadro.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/target/admin-cmd.c')
-rw-r--r-- | drivers/nvme/target/admin-cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/target/admin-cmd.c b/drivers/nvme/target/admin-cmd.c index 48a2f587f38a..6b46f90a63cf 100644 --- a/drivers/nvme/target/admin-cmd.c +++ b/drivers/nvme/target/admin-cmd.c @@ -370,7 +370,7 @@ static void nvmet_execute_identify_ctrl(struct nvmet_req *req) memcpy_and_pad(id->mn, sizeof(id->mn), subsys->model_number, strlen(subsys->model_number), ' '); memcpy_and_pad(id->fr, sizeof(id->fr), - UTS_RELEASE, strlen(UTS_RELEASE), ' '); + subsys->firmware_rev, strlen(subsys->firmware_rev), ' '); put_unaligned_le24(subsys->ieee_oui, id->ieee); |