scsi: smartpqi: wake up drives after os resumes from suspend
authorDave Carroll <david.carroll@microsemi.com>
Fri, 7 Dec 2018 22:29:05 +0000 (16:29 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 20 Dec 2018 03:23:34 +0000 (22:23 -0500)
commit2b447f811c1f7f30e4caa5a817d0c95d06aff874
treefae3890b9ca71f3b3f3c8585dc0a26264ab403b9
parent5995b236c10a0af748ae7f4e4819307cf6bc3140
scsi: smartpqi: wake up drives after os resumes from suspend

- 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.bhat@microsemi.com>
Reviewed-by: Mahesh Rajashekhara <mahesh.rajashekhara@microsemi.com>
Reviewed-by: Kevin Barnett <kevin.barnett@microsemi.com>
Signed-off-by: Dave Carroll <david.carroll@microsemi.com>
Signed-off-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/smartpqi/smartpqi_init.c