diff options
author | Minwoo Im <dn3108@gmail.com> | 2017-06-11 23:53:00 +0900 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2017-06-12 14:07:49 -0400 |
commit | 08fc4756c35fb076027374ff026a82de3de3c5f4 (patch) | |
tree | 2830e88518dabc7acef8cef79e566d98aa76c5d3 /drivers/ata | |
parent | f356b08205f6668248960093faf9326c7852a38d (diff) | |
download | linux-08fc4756c35fb076027374ff026a82de3de3c5f4.tar.bz2 |
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.
Signed-off-by: Minwoo Im <dn3108@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/libahci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c index 6154f0e2b81a..b3a685ad9b87 100644 --- a/drivers/ata/libahci.c +++ b/drivers/ata/libahci.c @@ -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); |