Skip to content

Commit

Permalink
scsi: smartpqi: wake up drives after os resumes from suspend
Browse files Browse the repository at this point in the history
- 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>
  • Loading branch information
Dave Carroll authored and Martin K. Petersen committed Dec 20, 2018
1 parent 5995b23 commit 2b447f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/scsi/smartpqi/smartpqi_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2b447f8

Please sign in to comment.