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-05-06 11:43:44 -04:00
2008-07-31 01:47:05 -04:00
2008-05-06 11:33:58 -04:00
2008-05-06 11:43:44 -04:00
2008-07-31 01:38:19 -04:00
2008-05-19 17:30:32 -04:00
2008-05-19 17:30:32 -04:00
2008-05-19 17:30:32 -04:00
2008-05-19 17:30:32 -04:00
2008-06-20 20:53:34 +02:00
2008-05-06 11:33:58 -04:00
2008-05-19 17:31:34 -04:00
2008-06-27 02:57:48 -04:00