Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=4fb4615bc9465e7098665fa9616b6ac1f495f895
Commit:     4fb4615bc9465e7098665fa9616b6ac1f495f895
Parent:     cdeab1140799f09c5f728a5ff85e0bdfa5679cd2
Author:     Tejun Heo <[EMAIL PROTECTED]>
AuthorDate: Mon Oct 29 16:45:05 2007 +0900
Committer:  Jeff Garzik <[EMAIL PROTECTED]>
CommitDate: Mon Oct 29 06:21:33 2007 -0400

    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 <[EMAIL PROTECTED]>
    Acked-by: Alan Cox <[EMAIL PROTECTED]>
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
---
 drivers/ata/libata-eh.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
index b237ff1..ec55d63 100644
--- a/drivers/ata/libata-eh.c
+++ b/drivers/ata/libata-eh.c
@@ -2437,7 +2437,7 @@ static int ata_eh_handle_dev_fail(struct ata_device *dev, 
int err)
                /* give it just one more chance */
                ehc->tries[dev->devno] = min(ehc->tries[dev->devno], 1);
        case -EIO:
-               if (ehc->tries[dev->devno] == 1) {
+               if (ehc->tries[dev->devno] == 1 && dev->pio_mode > XFER_PIO_0) {
                        /* This is the last chance, better to slow
                         * down than lose it.
                         */
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to