linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PATCH: make sure we are looking at the low bits post error
@ 2004-08-15 14:43 Alan Cox
  0 siblings, 0 replies; only message in thread
From: Alan Cox @ 2004-08-15 14:43 UTC (permalink / raw)
  To: linux-ide, linux-kernel, torvalds

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
--- linux.vanilla-2.6.8-rc3/drivers/ide/ide-io.c	2004-08-09 15:51:00.000000000 +0100
+++ linux-2.6.8-rc3/drivers/ide/ide-io.c	2004-08-15 00:04:30.000000000 +0100
@@ -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);


Signed-off-by: Alan Cox <alan@redhat.com> from an original bug report by
Brett Russ <russb@emc.com>


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-08-15 14:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-15 14:43 PATCH: make sure we are looking at the low bits post error Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).