Tejun Heo 5dbfc9cb59 libata: always do follow-up SRST if hardreset returned -EAGAIN
As an optimization, follow-up SRST used to be skipped if
classification wasn't requested even when hardreset requested it via
-EAGAIN.  However, some hardresets can't wait for device readiness and
skipping SRST can cause timeout or other failures during revalidation.
Always perform follow-up SRST if hardreset returns -EAGAIN.  This
makes reset paths more predictable and thus less error-prone.

While at it, move hardreset error checking such that it's done right
after hardreset is finished.  This simplifies followup SRST condition
check a bit and makes the reset path easier to modify.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2008-08-22 02:19:41 -04:00
..
2008-08-18 21:40:04 +02:00
2008-08-19 18:47:56 +02:00
2008-08-12 16:07:31 -07:00
2008-08-15 11:50:15 -07:00
2008-08-13 17:32:56 -07:00
2008-08-08 19:18:18 +01:00
2008-08-10 23:32:07 +02:00
2008-08-20 15:40:30 -07:00
2008-08-16 16:35:33 +01:00
2008-08-04 12:51:06 +09:00
2008-08-13 17:33:00 -07:00