Skip to contentSkip to conversation

sata_highbank: use ATA_BUSY

PATCH Applied Sergei Shtylyov 3 participants 4 messages Nov 1, 2012 – Nov 28, 2012 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sata_highbank: use ATA_BUSY

ahci_highbank_hardreset() uses bare number for the BSY bit of the ATA status register, despite it is #define'd in <linux/ata.h>

---
The patch is atop of the 'upstream' branch of libata-dev.git...

 drivers/ata/sata_highbank.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ata/sata_highbank.c +1 -1
Index: libata-dev/drivers/ata/sata_highbank.c
===================================================================
@@ -213,7 +213,7 @@ static int ahci_highbank_hardreset(struc
 
 	/* 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 {
#1 lore raw

Hello.

Quoted 16 lines · Sergei Shtylyov

ahci_highbank_hardreset() uses bare number for the BSY bit of the ATA status register, despite it is #define'd in <linux/ata.h>

---
The patch is atop of the 'upstream' branch of libata-dev.git...

 drivers/ata/sata_highbank.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: libata-dev/drivers/ata/sata_highbank.c
===================================================================

drivers/ata/sata_highbank.c static int ahci_highbank_hardreset(struc · line 219

Quoted 8 lines
drivers/ata/sata_highbank.c +1 -1
@@ -213,7 +213,7 @@ static int ahci_highbank_hardreset(struc
 
 	/* 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 {

Jeff, are you going to queue this one and earlier patches from me?

MBR, Sergei

#2 lore raw
Quoted 27 lines · Sergei Shtylyov

Hello.

Quoted 23 lines · Sergei Shtylyov

ahci_highbank_hardreset() uses bare number for the BSY bit of the ATA status register, despite it is #define'd in <linux/ata.h>

---
The patch is atop of the 'upstream' branch of libata-dev.git...

  drivers/ata/sata_highbank.c |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Index: libata-dev/drivers/ata/sata_highbank.c
===================================================================

drivers/ata/sata_highbank.c +1 -1
@@ -213,7 +213,7 @@ static int ahci_highbank_hardreset(struc
 
  	/* 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);
 
Quoted 3 lines

drivers/ata/sata_highbank.c static int ahci_highbank_hardreset(struc · line 219

Quoted 1 line
drivers/ata/sata_highbank.c +0 -0
  	do {

Jeff, are you going to queue this one and earlier patches from me?

Yep, should be queued in next 24-48 hours with a bunch of other stuff.

Wanted to get #upstream-fixes upstream and settled first.

Jeff

Applied
#3 lore raw
In reply to Sergei Shtylyov
Quoted 10 lines · Sergei Shtylyov

ahci_highbank_hardreset() uses bare number for the BSY bit of the ATA status register, despite it is #define'd in <linux/ata.h>

---
The patch is atop of the 'upstream' branch of libata-dev.git...

  drivers/ata/sata_highbank.c |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

applied