diff options
author | Tejun Heo <htejun@gmail.com> | 2010-09-07 12:05:31 (GMT) |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2010-09-10 02:27:59 (GMT) |
commit | e2f3d75fc0e4a0d03c61872bad39ffa2e74a04ff (patch) | |
tree | b98d70dadfe9143453494bd145a53c06910df4f7 /drivers/ata/libata-eh.c | |
parent | 992b3fb9b5391bc4de5b42bb810dc6dd583a6c4a (diff) | |
download | linux-fsl-qoriq-e2f3d75fc0e4a0d03c61872bad39ffa2e74a04ff.tar.xz |
libata: skip EH autopsy and recovery during suspend
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>
Cc: stable@kernel.org
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/libata-eh.c')
-rw-r--r-- | drivers/ata/libata-eh.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c index c9ae299..e48302e 100644 --- a/drivers/ata/libata-eh.c +++ b/drivers/ata/libata-eh.c @@ -3235,6 +3235,10 @@ static int ata_eh_skip_recovery(struct ata_link *link) if (link->flags & ATA_LFLAG_DISABLED) return 1; + /* skip if explicitly requested */ + if (ehc->i.flags & ATA_EHI_NO_RECOVERY) + return 1; + /* thaw frozen port and recover failed devices */ if ((ap->pflags & ATA_PFLAG_FROZEN) || ata_link_nr_enabled(link)) return 0; |