]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[SCSI] add flag to skip the runtime PM calls on the host
authorLin Ming <ming.m.lin@intel.com>
Mon, 5 Dec 2011 01:20:24 +0000 (09:20 +0800)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 7 Dec 2011 20:00:23 +0000 (15:00 -0500)
commit66eb1e14194968af7ea269bc7e660bbd734c4bff
tree0840aa8c90f2208713ff86feb6de73c4b73ea8f6
parent3eb63c7463e5c3de3bedec4528abafe1de9d00ed
[SCSI] add flag to skip the runtime PM calls on the host

With previous change, now the ata port runtime suspend will happen as:

disk suspend --> scsi target suspend --> scsi host suspend --> ata port
suspend

ata port(parent device) suspend need to schedule scsi EH which will resume
scsi host(child device). Then the child device resume will in turn make
parent device resume first. This is kind of recursive.

This patch adds a new flag Scsi_Host::eh_noresume.
ata port will set this flag to skip the runtime PM calls on scsi host.

Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/scsi/scsi_error.c
include/scsi/scsi_host.h