RE: [PATCH 08/37] smartpqi: add suspend and resume support

2017-05-03 Thread Don Brace
> -Original Message- > On Tue, 2017-04-25 at 14:46 -0500, Don Brace wrote: > > +static int pqi_device_wait_for_pending_io(struct pqi_ctrl_info *ctrl_info, > > + struct pqi_scsi_dev *device) > > +{ > > + while (atomic_read(&device->scsi_cmds_outstanding)) { > > + pq

Re: [PATCH 08/37] smartpqi: add suspend and resume support

2017-04-25 Thread Bart Van Assche
On Tue, 2017-04-25 at 14:46 -0500, Don Brace wrote: > +static int pqi_device_wait_for_pending_io(struct pqi_ctrl_info *ctrl_info, > +   struct pqi_scsi_dev *device) > +{ > +   while (atomic_read(&device->scsi_cmds_outstanding)) { > +   pqi_check_ctrl_health(ctrl_info); > +  

[PATCH 08/37] smartpqi: add suspend and resume support

2017-04-25 Thread Don Brace
From: Kevin Barnett add support for ACPI S3 (suspend) and S4 (hibernate) system power states. Reviewed-by: Scott Benesh Signed-off-by: Kevin Barnett Signed-off-by: Don Brace --- drivers/scsi/smartpqi/smartpqi.h | 12 + drivers/scsi/smartpqi/smartpqi_init.c | 424 +