nvme-pci: set constant paramters in nvme_pci_alloc_ctrl
authorChristoph Hellwig <hch@lst.de>
Tue, 8 Nov 2022 08:48:43 +0000 (09:48 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 15 Nov 2022 09:56:13 +0000 (10:56 +0100)
commit3f30a79c2e2c7d5ad14dfc372adb248fc239c6c1
treeb04c8065290a9c9eeb179bca7c5818be7f8fa0d0
parent2e87570be9d2746e7c4e7ab1cc18fd3ca7de2768
nvme-pci: set constant paramters in nvme_pci_alloc_ctrl

Move setting of low-level constant parameters from nvme_reset_work to
nvme_pci_alloc_ctrl.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Tested-by Gerd Bayer <gbayer@linxu.ibm.com>
drivers/nvme/host/pci.c