aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDave Carroll <david.carroll@microsemi.com>2018-12-07 16:29:05 -0600
committerMartin K. Petersen <martin.petersen@oracle.com>2018-12-19 22:23:34 -0500
commit2b447f811c1f7f30e4caa5a817d0c95d06aff874 (patch)
treefae3890b9ca71f3b3f3c8585dc0a26264ab403b9 /drivers
parentscsi: smartpqi: fix disk name mount point (diff)
downloadlinux-dev-2b447f811c1f7f30e4caa5a817d0c95d06aff874.tar.xz
linux-dev-2b447f811c1f7f30e4caa5a817d0c95d06aff874.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/smartpqi/smartpqi_init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/smartpqi/smartpqi_init.c b/drivers/scsi/smartpqi/smartpqi_init.c
index 74bd8d90c615..273daa2c2b68 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);