scsi: megaraid: disable device when probe failed after enabled device
authorXiang Chen <chenxiang66@hisilicon.com>
Sat, 7 Sep 2019 01:07:30 +0000 (09:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Oct 2019 08:14:57 +0000 (09:14 +0100)
commit80efde4ba80d968ff94caee94fad69dc15ba6f26
tree8b6e32ddad9e7df813ad4f67b181d17149ca8932
parentea8a6a585aa5ec4bbd37dc14ad882633644d5136
scsi: megaraid: disable device when probe failed after enabled device

[ Upstream commit 70054aa39a013fa52eff432f2223b8bd5c0048f8 ]

For pci device, need to disable device when probe failed after enabled
device.

Link: https://lore.kernel.org/r/1567818450-173315-1-git-send-email-chenxiang66@hisilicon.com
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Reviewed-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/megaraid.c