[libata] Issue SRST to Sil3726 PMP
authorGwendal Grignou <gwendal@google.com>
Thu, 20 Oct 2011 00:17:02 +0000 (17:17 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 9 Nov 2011 06:38:00 +0000 (01:38 -0500)
commit7a46c0780babea7d0b3f277a33ea243be38eb942
tree75d599d93a0f9faeadb421e0c83d8533e293630a
parent142924cf402f9c0568004f0e2a27988fe3556c61
[libata] Issue SRST to Sil3726 PMP

Reenable sending SRST to devices connected behind a Sil3726 PMP.
This allow staggered spinups and handles drives that spins up slowly.

While the drives spin up, the PMP will not accept SRST.
Most controller reissues the reset until the drive is ready, while
some [Sil3124] returns an error.
In ata_eh_error, wait 10s before reset the ATA port and try again.

Signed-off-by: Gwendal Grignou <gwendal@google.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-eh.c
drivers/ata/libata-pmp.c