aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2015-03-27 11:46:33 -0400
committerTejun Heo <tj@kernel.org>2015-03-27 11:59:22 -0400
commit27f00e53af72702d3a9e6f75590e66fe04914149 (patch)
treebd3fa2052313ada98842cfeb43ae18dbbfb8bc28
parent8ae720449fca4b1d0294c0a0204c0c45556a3e61 (diff)
ide,ata: Rename ATA_IDX to ATA_SENSE
ATA-8 defines bit 1 as 'ATA_SENSE', not 'ATA_IDX'. Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Tejun Heo <tj@kernel.org>
-rw-r--r--drivers/ata/libata-scsi.c2
-rw-r--r--drivers/ide/ide-lib.c4
-rw-r--r--drivers/ide/ide-probe.c2
-rw-r--r--include/linux/ata.h2
4 files changed, 5 insertions, 5 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
index 25d8b648ad38..b96e3b71434d 100644
--- a/drivers/ata/libata-scsi.c
+++ b/drivers/ata/libata-scsi.c
@@ -804,7 +804,7 @@ static void ata_dump_status(unsigned id, struct ata_taskfile *tf)
804 if (stat & 0x10) printk("SeekComplete "); 804 if (stat & 0x10) printk("SeekComplete ");
805 if (stat & 0x08) printk("DataRequest "); 805 if (stat & 0x08) printk("DataRequest ");
806 if (stat & 0x04) printk("CorrectedError "); 806 if (stat & 0x04) printk("CorrectedError ");
807 if (stat & 0x02) printk("Index "); 807 if (stat & 0x02) printk("Sense ");
808 if (stat & 0x01) printk("Error "); 808 if (stat & 0x01) printk("Error ");
809 printk("}\n"); 809 printk("}\n");
810 810
diff --git a/drivers/ide/ide-lib.c b/drivers/ide/ide-lib.c
index d9c9829c8b20..e1180fa46196 100644
--- a/drivers/ide/ide-lib.c
+++ b/drivers/ide/ide-lib.c
@@ -148,8 +148,8 @@ u8 ide_dump_status(ide_drive_t *drive, const char *msg, u8 stat)
148 printk(KERN_CONT "DataRequest "); 148 printk(KERN_CONT "DataRequest ");
149 if (stat & ATA_CORR) 149 if (stat & ATA_CORR)
150 printk(KERN_CONT "CorrectedError "); 150 printk(KERN_CONT "CorrectedError ");
151 if (stat & ATA_IDX) 151 if (stat & ATA_SENSE)
152 printk(KERN_CONT "Index "); 152 printk(KERN_CONT "Sense ");
153 if (stat & ATA_ERR) 153 if (stat & ATA_ERR)
154 printk(KERN_CONT "Error "); 154 printk(KERN_CONT "Error ");
155 } 155 }
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c
index a3d3b1733c49..0b63facd1d87 100644
--- a/drivers/ide/ide-probe.c
+++ b/drivers/ide/ide-probe.c
@@ -273,7 +273,7 @@ int ide_dev_read_id(ide_drive_t *drive, u8 cmd, u16 *id, int irq_ctx)
273 (hwif->host_flags & IDE_HFLAG_BROKEN_ALTSTATUS) == 0) { 273 (hwif->host_flags & IDE_HFLAG_BROKEN_ALTSTATUS) == 0) {
274 a = tp_ops->read_altstatus(hwif); 274 a = tp_ops->read_altstatus(hwif);
275 s = tp_ops->read_status(hwif); 275 s = tp_ops->read_status(hwif);
276 if ((a ^ s) & ~ATA_IDX) 276 if ((a ^ s) & ~ATA_SENSE)
277 /* ancient Seagate drives, broken interfaces */ 277 /* ancient Seagate drives, broken interfaces */
278 printk(KERN_INFO "%s: probing with STATUS(0x%02x) " 278 printk(KERN_INFO "%s: probing with STATUS(0x%02x) "
279 "instead of ALTSTATUS(0x%02x)\n", 279 "instead of ALTSTATUS(0x%02x)\n",
diff --git a/include/linux/ata.h b/include/linux/ata.h
index 681520f8a3de..e3cb41c17ba7 100644
--- a/include/linux/ata.h
+++ b/include/linux/ata.h
@@ -177,7 +177,7 @@ enum {
177 ATA_DSC = (1 << 4), /* drive seek complete */ 177 ATA_DSC = (1 << 4), /* drive seek complete */
178 ATA_DRQ = (1 << 3), /* data request i/o */ 178 ATA_DRQ = (1 << 3), /* data request i/o */
179 ATA_CORR = (1 << 2), /* corrected data error */ 179 ATA_CORR = (1 << 2), /* corrected data error */
180 ATA_IDX = (1 << 1), /* index */ 180 ATA_SENSE = (1 << 1), /* sense code available */
181 ATA_ERR = (1 << 0), /* have an error */ 181 ATA_ERR = (1 << 0), /* have an error */
182 ATA_SRST = (1 << 2), /* software reset */ 182 ATA_SRST = (1 << 2), /* software reset */
183 ATA_ICRC = (1 << 7), /* interface CRC error */ 183 ATA_ICRC = (1 << 7), /* interface CRC error */