diff options
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | 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 b237ff18b39e..ec55d63cf20e 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) | |||
2437 | /* give it just one more chance */ | 2437 | /* give it just one more chance */ |
2438 | ehc->tries[dev->devno] = min(ehc->tries[dev->devno], 1); | 2438 | ehc->tries[dev->devno] = min(ehc->tries[dev->devno], 1); |
2439 | case -EIO: | 2439 | case -EIO: |
2440 | if (ehc->tries[dev->devno] == 1) { | 2440 | if (ehc->tries[dev->devno] == 1 && dev->pio_mode > XFER_PIO_0) { |
2441 | /* This is the last chance, better to slow | 2441 | /* This is the last chance, better to slow |
2442 | * down than lose it. | 2442 | * down than lose it. |
2443 | */ | 2443 | */ |