[PATCH 2/9] ata: fix status flags

Sascha Hauer s.hauer at pengutronix.de
Thu Dec 6 08:34:23 EST 2012


Some status flags are wrong, fix them. All of them are currently unused,
so no functional change included.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/ata/disk_ata_drive.c |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/ata/disk_ata_drive.c b/drivers/ata/disk_ata_drive.c
index 303d6d0..b65a660 100644
--- a/drivers/ata/disk_ata_drive.c
+++ b/drivers/ata/disk_ata_drive.c
@@ -61,9 +61,11 @@ struct ata_drive_access {
 #define ATA_STATUS_BUSY (1 << 7)
 #define ATA_STATUS_READY (1 << 6)
 #define ATA_STATUS_WR_FLT (1 << 5)
-#define ATA_STATUS_DRQ (1 << 4)
-#define ATA_STATUS_CORR (1 << 3)
-#define ATA_STATUS_ERROR (1 << 1)
+#define ATA_STATUS_DSC (1 << 4)
+#define ATA_STATUS_DRQ (1 << 3)
+#define ATA_STATUS_CORR (1 << 2)
+#define ATA_STATUS_IDX (1 << 1)
+#define ATA_STATUS_ERROR (1 << 0)
 /* command flags */
 #define LBA_FLAG (1 << 6)
 #define ATA_DEVCTL_SOFT_RESET (1 << 2)
-- 
1.7.10.4




More information about the barebox mailing list