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: b6dccf7fae433 (“nvme: add support for FW activation without reset”).
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Minwoo Im <minwoo.im@samsung.com>
Signed-off-by: Laine Walker-Avina <laine.walker-avina@intel.com>
[changelog, fix endian]
Signed-off-by: Keith Busch <keith.busch@intel.com>

authored by

Laine Walker-Avina and committed by
Keith Busch
2d466c7a 510a405d

+1
+1
drivers/nvme/host/core.c
··· 2576 2576 2577 2577 ctrl->oacs = le16_to_cpu(id->oacs); 2578 2578 ctrl->oncs = le16_to_cpu(id->oncs); 2579 + ctrl->mtfa = le16_to_cpu(id->mtfa); 2579 2580 ctrl->oaes = le32_to_cpu(id->oaes); 2580 2581 atomic_set(&ctrl->abort_limit, id->acl + 1); 2581 2582 ctrl->vwc = id->vwc;