nvme-pci: don't unbind the driver on reset failure
authorChristoph Hellwig <hch@lst.de>
Tue, 8 Nov 2022 14:42:57 +0000 (15:42 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 16 Nov 2022 07:36:33 +0000 (08:36 +0100)
commitc7c16c5b196772aba1d99c4c0b505fe99a6fbba8
tree1cd4a437dc3c9b1ceb0ebfd7be8097175aa369cc
parenteac3ef262941f62fe01bc357911fea4847183333
nvme-pci: don't unbind the driver on reset failure

Unbind a device driver when a reset fails is very unusual behavior.
Just shut the controller down and leave it in dead state if we fail
to reset it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
drivers/nvme/host/pci.c