ata: add ata port runtime PM callbacks
authorLin Ming <ming.m.lin@intel.com>
Mon, 5 Dec 2011 01:20:28 +0000 (09:20 +0800)
committerJeff Garzik <jgarzik@redhat.com>
Mon, 9 Jan 2012 00:14:58 +0000 (19:14 -0500)
commit9ee4f3933930abf5cc34f8e9d69fe0e08c18f602
tree7d3751d52712f71a19d488f9970b6184b4c140c6
parent5ef41082912bdfcb33fa53b8dba2ad17dea2ef90
ata: add ata port runtime PM callbacks

Add ata port runtime suspend/resume/idle callbacks.
Set ->eh_noresume to skip the runtime PM calls on scsi host
in the error handler to avoid dead lock.

Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-core.c
drivers/ata/libata-scsi.c
drivers/ata/libata-transport.c