Skip to contentSkip to conversation

PATCH: make sure we are looking at the low bits post error

PATCH Alan Cox 1 participant 1 message Aug 15, 2004 libata

lore
Share & tools
lore

Alan Cox

author
#0 lore raw
drivers/ide/ide-io.c +2 -0
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.8-rc3/drivers/ide/ide-io.c linux-2.6.8-rc3/drivers/ide/ide-io.c
@@ -197,6 +197,8 @@
 				args->hobRegister[IDE_DATA_OFFSET]	= (data >> 8) & 0xFF;
 			}
 			args->tfRegister[IDE_ERROR_OFFSET]   = err;
+			/* Be sure we're looking at the low order bits */
+			hwif->OUTB(drive->ctl & ~0x80,IDE_CONTROL_REG);
 			args->tfRegister[IDE_NSECTOR_OFFSET] = hwif->INB(IDE_NSECTOR_REG);
 			args->tfRegister[IDE_SECTOR_OFFSET]  = hwif->INB(IDE_SECTOR_REG);
 			args->tfRegister[IDE_LCYL_OFFSET]    = hwif->INB(IDE_LCYL_REG);

Brett Russ <[email protected]>