]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit531bc8887e41261169c5ef65ac66dfff07b55da2
tree75d599d93a0f9faeadb421e0c83d8533e293630a
parent7baf8cd0f38e39b7114f1b809b2d58d1046b710d
[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