diff options
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/libata-eh.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c index ee9bb534153a..5309c312f517 100644 --- a/drivers/ata/libata-eh.c +++ b/drivers/ata/libata-eh.c | |||
@@ -2003,14 +2003,10 @@ static int ata_eh_recover(struct ata_port *ap, ata_prereset_fn_t prereset, | |||
2003 | ehc->tries[dev->devno]--; | 2003 | ehc->tries[dev->devno]--; |
2004 | 2004 | ||
2005 | switch (rc) { | 2005 | switch (rc) { |
2006 | case -EINVAL: | ||
2007 | /* eeek, something went very wrong, give up */ | ||
2008 | ehc->tries[dev->devno] = 0; | ||
2009 | break; | ||
2010 | |||
2011 | case -ENODEV: | 2006 | case -ENODEV: |
2012 | /* device missing or wrong IDENTIFY data, schedule probing */ | 2007 | /* device missing or wrong IDENTIFY data, schedule probing */ |
2013 | ehc->i.probe_mask |= (1 << dev->devno); | 2008 | ehc->i.probe_mask |= (1 << dev->devno); |
2009 | case -EINVAL: | ||
2014 | /* give it just one more chance */ | 2010 | /* give it just one more chance */ |
2015 | ehc->tries[dev->devno] = min(ehc->tries[dev->devno], 1); | 2011 | ehc->tries[dev->devno] = min(ehc->tries[dev->devno], 1); |
2016 | case -EIO: | 2012 | case -EIO: |