git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2864051
)
[SCSI] sd: check runtime PM status in sd_shutdown
author
Lin Ming
<ming.m.lin@intel.com>
Mon, 5 Dec 2011 01:20:26 +0000
(09:20 +0800)
committer
Jeff Garzik
<jgarzik@redhat.com>
Mon, 9 Jan 2012 00:14:57 +0000
(19:14 -0500)
sd_shutdown is called during reboot/poweroff.
It may fail if parent device, for example, ata port, was runtime suspended.
Fix it by checking runtime PM status of sd.
Exit immediately if sd was runtime suspended already.
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/sd.c
patch
|
blob
|
history
diff --cc
drivers/scsi/sd.c
Simple merge