Skip to content

Commit 2d466c7

Browse files
Laine Walker-AvinaKeith Busch
authored andcommitted
nvme: copy MTFA field from identify controller
We use the controller's reported maximum firmware activation time as our timeout before resetting a controller for a failed activation notice, but this value was never being read so we could only use the default timeout. Copy the Identify Controller MTFA field to the corresponding nvme_ctrl's mtfa field. Fixes: b6dccf7 (“nvme: add support for FW activation without reset”). Reviewed-by: Max Gurtovoy <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Minwoo Im <[email protected]> Signed-off-by: Laine Walker-Avina <[email protected]> [changelog, fix endian] Signed-off-by: Keith Busch <[email protected]>
1 parent 510a405 commit 2d466c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/nvme/host/core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2576,6 +2576,7 @@ int nvme_init_identify(struct nvme_ctrl *ctrl)
25762576

25772577
ctrl->oacs = le16_to_cpu(id->oacs);
25782578
ctrl->oncs = le16_to_cpu(id->oncs);
2579+
ctrl->mtfa = le16_to_cpu(id->mtfa);
25792580
ctrl->oaes = le32_to_cpu(id->oaes);
25802581
atomic_set(&ctrl->abort_limit, id->acl + 1);
25812582
ctrl->vwc = id->vwc;

0 commit comments

Comments
 (0)