hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/ata/libata-eh.c
....@@ -2703,18 +2703,11 @@
27032703 postreset(slave, classes);
27042704 }
27052705
2706
- /*
2707
- * Some controllers can't be frozen very well and may set spurious
2708
- * error conditions during reset. Clear accumulated error
2709
- * information and re-thaw the port if frozen. As reset is the
2710
- * final recovery action and we cross check link onlineness against
2711
- * device classification later, no hotplug event is lost by this.
2712
- */
2706
+ /* clear cached SError */
27132707 spin_lock_irqsave(link->ap->lock, flags);
2714
- memset(&link->eh_info, 0, sizeof(link->eh_info));
2708
+ link->eh_info.serror = 0;
27152709 if (slave)
2716
- memset(&slave->eh_info, 0, sizeof(link->eh_info));
2717
- ap->pflags &= ~ATA_PFLAG_EH_PENDING;
2710
+ slave->eh_info.serror = 0;
27182711 spin_unlock_irqrestore(link->ap->lock, flags);
27192712
27202713 if (ap->pflags & ATA_PFLAG_FROZEN)