Commit b946d8f9 authored by Laine Walker-Avina's avatar Laine Walker-Avina Committed by Yang Yingliang
Browse files

nvme: copy MTFA field from identify controller



mainline inclusion
from mainline-5.2-rc2
commit 2d466c7a
category: bugfix
bugzilla: 167363
CVE: NA

---------------------------

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

Conflicts:
	drivers/nvme/host/core.c
	[ Cleanup 43e2d08d("nvme: avoid double dereference to
	  convert le to cpu") is not applied. ]

Signed-off-by: default avatarZhihao Cheng <chengzhihao1@huawei.com>
Reviewed-by: default avatarHou Tao <houtao1@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent ed4538b7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment