|
Lines 473-479
int ata_scsi_device_suspend(struct scsi_device *sdev, pm_message_t mesg)
Link Here
|
| 473 |
if (mesg.event != PM_EVENT_SUSPEND) |
473 |
if (mesg.event != PM_EVENT_SUSPEND) |
| 474 |
action |= ATA_EH_PM_FREEZE; |
474 |
action |= ATA_EH_PM_FREEZE; |
| 475 |
ap->eh_info.dev_action[dev->devno] |= action; |
475 |
ap->eh_info.dev_action[dev->devno] |= action; |
| 476 |
ap->eh_info.flags |= ATA_EHI_QUIET; |
476 |
/*ap->eh_info.flags |= ATA_EHI_QUIET;*/ |
| 477 |
ata_port_schedule_eh(ap); |
477 |
ata_port_schedule_eh(ap); |
| 478 |
|
478 |
|
| 479 |
spin_unlock_irqrestore(ap->lock, flags); |
479 |
spin_unlock_irqrestore(ap->lock, flags); |
|
Lines 543-549
int ata_scsi_device_resume(struct scsi_device *sdev)
Link Here
|
| 543 |
* those if we're the only device on this link. |
543 |
* those if we're the only device on this link. |
| 544 |
*/ |
544 |
*/ |
| 545 |
if (ata_port_max_devices(ap) == 1) |
545 |
if (ata_port_max_devices(ap) == 1) |
| 546 |
ehi->flags |= ATA_EHI_NO_AUTOPSY | ATA_EHI_QUIET; |
546 |
ehi->flags |= ATA_EHI_NO_AUTOPSY/* | ATA_EHI_QUIET*/; |
| 547 |
|
547 |
|
| 548 |
ata_port_schedule_eh(ap); |
548 |
ata_port_schedule_eh(ap); |
| 549 |
|
549 |
|