Name

ata_device_suspend — prepare a device for suspend

Synopsis

int ata_device_suspend (struct ata_port *  ap,
 struct ata_device *  dev,
 pm_message_t  state);

Arguments

ap

port the device is connected to

dev

the device to suspend

state

target power management state

Description

Flush the cache on the drive, if appropriate, then issue a standbynow command.