libata: skip EH autopsy and recovery during suspend
commit45665602d901bae2a384e2a332168ea56c82ed34
authorTejun Heo <htejun@gmail.com>
Tue, 7 Sep 2010 12:05:31 +0000 (7 14:05 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Sep 2010 20:17:51 +0000 (20 13:17 -0700)
treec44ca7d2a7c8d487ceb92a388e5a2cc5da6a4517
parent3df1ba0d074919fef36e919220aec1b379d82684
libata: skip EH autopsy and recovery during suspend

commit e2f3d75fc0e4a0d03c61872bad39ffa2e74a04ff upstream.

For some mysterious reason, certain hardware reacts badly to usual EH
actions while the system is going for suspend.  As the devices won't
be needed until the system is resumed, ask EH to skip usual autopsy
and recovery and proceed directly to suspend.

Signed-off-by: Tejun Heo <tj@kernel.org>
Tested-by: Stephan Diestelhorst <stephan.diestelhorst@amd.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/ata/libata-core.c
drivers/ata/libata-eh.c
include/linux/libata.h