scsi: pm80xx: Fixed kernel panic during error recovery for SATA drive
authorDeepak Ukey <deepak.ukey@microchip.com>
Tue, 9 Jul 2019 10:00:48 +0000 (15:30 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Mar 2020 13:15:13 +0000 (14:15 +0100)
commit55c009b419778c30e2deb8c92be54f3a1cac4082
tree0f7cac68e7359ec0b4d595ffbdd3df4c9255bacc
parentbd68d2206bb832aed06d4feac79097c0cc3228e9
scsi: pm80xx: Fixed kernel panic during error recovery for SATA drive

commit 196ba6629cf95e51403337235d09742fcdc3febd upstream.

Disabling the SATA drive interface cause kernel panic. When the drive
Interface is disabled, device should be deregistered after aborting all
pending I/Os. Also changed the port recovery timeout to 10000 ms for
PM8006 controller.

Signed-off-by: Deepak Ukey <deepak.ukey@microchip.com>
Signed-off-by: Viswas G <Viswas.G@microchip.com>
Reviewed-by: Jack Wang <jinpu.wang@cloud.ionos.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/pm8001/pm8001_sas.c
drivers/scsi/pm8001/pm80xx_hwi.c
drivers/scsi/pm8001/pm80xx_hwi.h