Skip to contentSkip to conversation

ide: clear HOB bit for REQ_TYPE_ATA_CMD requests in ide_end_drive_cmd()

PATCH In review Bartlomiej Zolnierkiewicz 2 participants 2 messages Dec 9, 2007 – Dec 10, 2007 libata

lore
Share & tools
lore
#0 lore raw

PATCH 4/20 ide: clear HOB bit for REQ_TYPE_ATA_CMD requests in ide_end_drive_cmd()

ide_dump_status() may set HOB bit before ide_end_drive_cmd() is called.

---
 drivers/ide/ide-io.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/ide/ide-io.c +2 -0
Index: b/drivers/ide/ide-io.c
===================================================================
@@ -370,6 +370,8 @@ void ide_end_drive_cmd (ide_drive_t *dri
 		if (args) {
 			args[0] = stat;
 			args[1] = err;
+			/* be sure we're looking at the low order bits */
+			hwif->OUTB(drive->ctl & ~0x80, IDE_CONTROL_REG);
 			args[2] = hwif->INB(IDE_NSECTOR_REG);
 		}
 	} else if (rq->cmd_type == REQ_TYPE_ATA_TASKFILE) {