diff options
Diffstat (limited to 'drivers/ata/libata-eh.c')
-rw-r--r-- | drivers/ata/libata-eh.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c index 67bf150fa66b..2bff9adcacf1 100644 --- a/drivers/ata/libata-eh.c +++ b/drivers/ata/libata-eh.c | |||
@@ -1671,7 +1671,10 @@ static int ata_eh_reset(struct ata_port *ap, int classify, | |||
1671 | reset == softreset ? "soft" : "hard"); | 1671 | reset == softreset ? "soft" : "hard"); |
1672 | 1672 | ||
1673 | /* mark that this EH session started with reset */ | 1673 | /* mark that this EH session started with reset */ |
1674 | ehc->i.flags |= ATA_EHI_DID_RESET; | 1674 | if (reset == hardreset) |
1675 | ehc->i.flags |= ATA_EHI_DID_HARDRESET; | ||
1676 | else | ||
1677 | ehc->i.flags |= ATA_EHI_DID_SOFTRESET; | ||
1675 | 1678 | ||
1676 | rc = ata_do_reset(ap, reset, classes); | 1679 | rc = ata_do_reset(ap, reset, classes); |
1677 | 1680 | ||