]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: mpt3sas: Unblock device after controller reset
authorSuganath Prabu S <suganath-prabu.subramani@broadcom.com>
Thu, 17 Nov 2016 10:45:58 +0000 (16:15 +0530)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 6 Mar 2017 21:24:12 +0000 (13:24 -0800)
commit29f4c9f5df4815bb216281ddfa6bbb270161b01a
tree4e139e12f9202f056373eabf316453ba44cee211
parent63d2d3385796e271d63afea3306a1dd083a204da
scsi: mpt3sas: Unblock device after controller reset

Orabug: 25639713

While issuing any ATA passthrough command to firmware the driver will
block the device. But it will unblock the device only if the I/O
completes through the ISR path. If a controller reset occurs before
command completion the device will remain in blocked state.

Make sure we unblock the device following a controller reset if an ATA
passthrough command was queued.

[mkp: clarified patch description]

Cc: <stable@vger.kernel.org> # v4.4+
Fixes: ac6c2a93bd07 ("mpt3sas: Fix for SATA drive in blocked state, after diag reset")
Signed-off-by: Suganath Prabu S <suganath-prabu.subramani@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit 7ff723ad0f87feba43dda45fdae71206063dd7d4)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Conflicts:
drivers/scsi/mpt3sas/mpt3sas_scsih.c
drivers/scsi/mpt3sas/mpt3sas_scsih.c