sata_highbank: use ATA_BUSY
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Thu, 1 Nov 2012 17:59:28 +0000 (20:59 +0300)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 28 Nov 2012 17:39:49 +0000 (12:39 -0500)
ahci_highbank_hardreset() uses bare number for the BSY bit of the ATA status
register, despite it is #define'd in <linux/ata.h>

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/sata_highbank.c

index 400bf1c3e982eac392652d086358858ef903ca82..75c0f3cc4a8a821c1ce9f609a85a636966b03f29 100644 (file)
@@ -213,7 +213,7 @@ static int ahci_highbank_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);
 
        do {