]> err.no Git - linux-2.6/commit
libata: no need to speed down if already at PIO0
authorTejun Heo <htejun@gmail.com>
Mon, 29 Oct 2007 07:45:05 +0000 (16:45 +0900)
committerJeff Garzik <jeff@garzik.org>
Mon, 29 Oct 2007 10:21:33 +0000 (06:21 -0400)
commit4fb4615bc9465e7098665fa9616b6ac1f495f895
treefdd760b7dd485cb21ca5f6547e3db2335589aed0
parentcdeab1140799f09c5f728a5ff85e0bdfa5679cd2
libata: no need to speed down if already at PIO0

After reset, transfer mode is always PIO0 regardless of
dev->xfer_mask.  Check dev->pio_mode before trying to slow down after
configuration failure.  This prevents bogus speed down before device
is actually configured.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-eh.c