* [PATCH] ahci: use ATA_BUSY
@ 2013-06-22 21:14 Sergei Shtylyov
2013-06-22 21:16 ` Sergei Shtylyov
0 siblings, 1 reply; 2+ messages in thread
From: Sergei Shtylyov @ 2013-06-22 21:14 UTC (permalink / raw)
To: linux-ide, tj
ahci_p5wdh_hardreset() uses bare number 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>
---
drivers/ata/ahci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: libata/drivers/ata/ahci.c
===================================================================
--- libata.orig/drivers/ata/ahci.c
+++ libata/drivers/ata/ahci.c
@@ -583,7 +583,7 @@ static int ahci_p5wdh_hardreset(struct a
/* 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, sata_ehc_deb_timing(&link->eh_context),
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ahci: use ATA_BUSY
2013-06-22 21:14 [PATCH] ahci: use ATA_BUSY Sergei Shtylyov
@ 2013-06-22 21:16 ` Sergei Shtylyov
0 siblings, 0 replies; 2+ messages in thread
From: Sergei Shtylyov @ 2013-06-22 21:16 UTC (permalink / raw)
To: linux-ide, tj
Hello.
On 06/23/2013 01:14 AM, Sergei Shtylyov wrote:
> ahci_p5wdh_hardreset() uses bare number 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>
> ---
The patch is against 'for-3.11' branch of the 'libata.git' repo.
WBR, Sergei
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-22 21:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-22 21:14 [PATCH] ahci: use ATA_BUSY Sergei Shtylyov
2013-06-22 21:16 ` Sergei Shtylyov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.