diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2013-06-22 23:39:39 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-06-25 01:29:31 +0200 |
commit | 9bbb1b0e2a83c5b3922a050acc932ee3004e85b6 (patch) | |
tree | f57a766e83d9745f7e2e8176804af6c8e6e42d31 /drivers/ata/libahci.c | |
parent | libata-zpodd: must use ata_tf_init() (diff) | |
download | linux-9bbb1b0e2a83c5b3922a050acc932ee3004e85b6.tar.xz linux-9bbb1b0e2a83c5b3922a050acc932ee3004e85b6.zip |
AHCI: use ATA_BUSY
ahci_hardreset() and ahci_p5wdh_hardreset() use bare numbers for the
BSY bit of the ATA status register, despite it's #define'd in
<linux/ata.h>.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata/libahci.c')
-rw-r--r-- | drivers/ata/libahci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c index 64c3f1f41af1..c240e4a80d2f 100644 --- a/drivers/ata/libahci.c +++ b/drivers/ata/libahci.c @@ -1413,7 +1413,7 @@ static int ahci_hardreset(struct ata_link *link, unsigned int *class, /* clear D2H reception area to properly wait for D2H FIS */ ata_tf_init(link->device, &tf); - tf.command = 0x80; + tf.command = ATA_BUSY; ata_tf_to_fis(&tf, 0, 0, d2h_fis); rc = sata_link_hardreset(link, timing, deadline, &online, |