]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
nvme: copy MTFA field from identify controller
authorLaine Walker-Avina <laine.walker-avina@intel.com>
Mon, 20 May 2019 17:13:04 +0000 (10:13 -0700)
committerKeith Busch <keith.busch@intel.com>
Tue, 21 May 2019 15:01:37 +0000 (09:01 -0600)
commit2d466c7a574d0b893a233735f133c60115013c0e
tree8ae8e403a23d6d9c8e1b195de0d7d8e17ea0b751
parent510a405d945bc985abc513fafe45890cac34fafa
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>
drivers/nvme/host/core.c