From: Dave Carroll <david.carr...@microsemi.com> - set allow_restart option during scsi_device init. This allows the kernel to send a START/STOP Unit command to the drive if it encounters a 4/2 check condition in sense data.
Reviewed-by: Murthy Bhat <murthy.b...@microsemi.com> Reviewed-by: Mahesh Rajashekhara <mahesh.rajashekh...@microsemi.com> Reviewed-by: Kevin Barnett <kevin.barn...@microsemi.com> Signed-off-by: Dave Carroll <david.carr...@microsemi.com> Signed-off-by: Don Brace <don.br...@microsemi.com> --- drivers/scsi/smartpqi/smartpqi_init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/scsi/smartpqi/smartpqi_init.c b/drivers/scsi/smartpqi/smartpqi_init.c index 6716d30dc5ef..acde0abbbf43 100644 --- a/drivers/scsi/smartpqi/smartpqi_init.c +++ b/drivers/scsi/smartpqi/smartpqi_init.c @@ -5434,6 +5434,8 @@ static int pqi_slave_alloc(struct scsi_device *sdev) } if (pqi_is_logical_device(device)) pqi_disable_write_same(sdev); + else + sdev->allow_restart = 1; } spin_unlock_irqrestore(&ctrl_info->scsi_device_list_lock, flags);