From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Cox Subject: PATCH: make sure we are looking at the low bits post error Date: Sun, 15 Aug 2004 10:43:01 -0400 Sender: linux-ide-owner@vger.kernel.org Message-ID: <20040815144301.GA7165@devserv.devel.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mx1.redhat.com ([66.187.233.31]:12760 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S266721AbUHOOoA (ORCPT ); Sun, 15 Aug 2004 10:44:00 -0400 Content-Disposition: inline List-Id: linux-ide@vger.kernel.org To: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, torvalds@osdl.org 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 from an original bug report by Brett Russ