summaryrefslogtreecommitdiffstats
path: root/drivers/nvme
diff options
context:
space:
mode:
authorKeith Busch <kbusch@kernel.org>2024-11-04 23:17:59 +0100
committerKeith Busch <kbusch@kernel.org>2024-11-11 18:49:49 +0100
commit1e058089d28f58bd194d3c0f06512f42079f5a1d (patch)
tree4d2a36b5fed172bf7179dedf63aa929addbee6e7 /drivers/nvme
parentnvmet: implement supported features log (diff)
downloadlinux-1e058089d28f58bd194d3c0f06512f42079f5a1d.tar.xz
linux-1e058089d28f58bd194d3c0f06512f42079f5a1d.zip
nvmet: implement crto property
This property is required for nvme 2.1. The target only supports ready with media, so this is just the same value as CAP.TO. Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Matias Bjørling <matias.bjorling@wdc.com> Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'drivers/nvme')
-rw-r--r--drivers/nvme/target/fabrics-cmd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/nvme/target/fabrics-cmd.c b/drivers/nvme/target/fabrics-cmd.c
index 28a84af1b4c0..c49904ebb6c2 100644
--- a/drivers/nvme/target/fabrics-cmd.c
+++ b/drivers/nvme/target/fabrics-cmd.c
@@ -64,6 +64,9 @@ static void nvmet_execute_prop_get(struct nvmet_req *req)
case NVME_REG_CSTS:
val = ctrl->csts;
break;
+ case NVME_REG_CRTO:
+ val = NVME_CAP_TIMEOUT(ctrl->csts);
+ break;
default:
status = NVME_SC_INVALID_FIELD | NVME_STATUS_DNR;
break;