Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 771b8dad authored by Tejun Heo's avatar Tejun Heo Committed by Jeff Garzik
Browse files

libata: hardreset on SERR_INTERNAL



There was a rare report where SB600 reported SERR_INTERNAL and SRST
couldn't get it out of the failure mode.  Hardreset on SERR_INTERNAL.
As the problem is intermittent, whether this fixes the problem or not
hasn't been verified yet, but hardresetting the channel on internal
error is a good idea anyway.

Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 176efb05
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1056,7 +1056,7 @@ static void ata_eh_analyze_serror(struct ata_port *ap)
	}
	}
	if (serror & SERR_INTERNAL) {
	if (serror & SERR_INTERNAL) {
		err_mask |= AC_ERR_SYSTEM;
		err_mask |= AC_ERR_SYSTEM;
		action |= ATA_EH_SOFTRESET;
		action |= ATA_EH_HARDRESET;
	}
	}
	if (serror & (SERR_PHYRDY_CHG | SERR_DEV_XCHG))
	if (serror & (SERR_PHYRDY_CHG | SERR_DEV_XCHG))
		ata_ehi_hotplugged(&ehc->i);
		ata_ehi_hotplugged(&ehc->i);