aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/ata/libata-eh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
index a570ca47e239..c98909ba0b1c 100644
--- a/drivers/ata/libata-eh.c
+++ b/drivers/ata/libata-eh.c
@@ -2251,10 +2251,10 @@ int ata_eh_reset(struct ata_link *link, int classify,
2251 ehc->i.action &= ~ATA_EH_RESET; 2251 ehc->i.action &= ~ATA_EH_RESET;
2252 if (hardreset) { 2252 if (hardreset) {
2253 reset = hardreset; 2253 reset = hardreset;
2254 ehc->i.action = ATA_EH_HARDRESET; 2254 ehc->i.action |= ATA_EH_HARDRESET;
2255 } else if (softreset) { 2255 } else if (softreset) {
2256 reset = softreset; 2256 reset = softreset;
2257 ehc->i.action = ATA_EH_SOFTRESET; 2257 ehc->i.action |= ATA_EH_SOFTRESET;
2258 } 2258 }
2259 2259
2260 if (prereset) { 2260 if (prereset) {