Skip to content

Commit 3495de7

Browse files
htejunJeff Garzik
authored andcommitted
libata-pmp: update ata_eh_reset() for PMP
PMP always requires SRST to be enabled. Also, hardreset reports classification code from the first device when PMP is attached, not from the PMP. Update ata_eh_reset() such that followup softreset is performed if the controller is PMP capable and the host link is being reset. Signed-off-by: Tejun Heo <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
1 parent 93328e1 commit 3495de7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/ata/libata-eh.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2003,6 +2003,8 @@ static int ata_eh_followup_srst_needed(struct ata_link *link,
20032003
return 1;
20042004
if (rc != 0)
20052005
return 0;
2006+
if ((link->ap->flags & ATA_FLAG_PMP) && ata_is_host_link(link))
2007+
return 1;
20062008
if (classify && !(link->flags & ATA_LFLAG_ASSUME_CLASS) &&
20072009
classes[0] == ATA_DEV_UNKNOWN)
20082010
return 1;

0 commit comments

Comments
 (0)