Skip to contentSkip to conversation

libahci: wrong comments in ahci_do_softreset()

PATCH Applied Minwoo Im 2 participants 2 messages Jun 11, 2017 – Jun 12, 2017 libata

lore
Share & tools
lore

Minwoo Im

author
#0 lore raw

PATCH 1/1 libahci: wrong comments in ahci_do_softreset()

AHCI 1.3.1 Spec says that software shall build two H2D register FISes in the command list to send a software reset.
The comments in ahci_do_softreset() is currently D2H instead of H2D.

---
 drivers/ata/libahci.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/ata/libahci.c +2 -2
index 3159f9e..835efe4 100644
@@ -1400,7 +1400,7 @@ int ahci_do_softreset(struct ata_link *link, unsigned int *class,
 
 	ata_tf_init(link->device, &tf);
 
-	/* issue the first D2H Register FIS */
+	/* issue the first H2D Register FIS */
 	msecs = 0;
 	now = jiffies;
 	if (time_after(deadline, now))
@@ -1417,7 +1417,7 @@ int ahci_do_softreset(struct ata_link *link, unsigned int *class,
 	/* spec says at least 5us, but be generous and sleep for 1ms */
 	ata_msleep(ap, 1);
 
-	/* issue the second D2H Register FIS */
+	/* issue the second H2D Register FIS */
 	tf.ctl &= ~ATA_SRST;
 	ahci_exec_polled_cmd(ap, pmp, &tf, 0, 0, 0);
 
Signature · 1 line
1.7.9.5
Applied
#1 lore raw
Quoted 5 lines · Minwoo Im

AHCI 1.3.1 Spec says that software shall build two H2D register FISes in the command list to send a software reset.
The comments in ahci_do_softreset() is currently D2H instead of H2D.

Applied to libata/for-4.13.

Thanks.

Signature · 1 line
tejun