Messages in this thread Patch in this message | | | Date | Sun, 20 Feb 2005 12:34:14 +0100 (CET) | From | Bartlomiej Zolnierkiewicz <> | Subject | [patch ide] fix ide_get_error_location() for LBA28 |
| |
Higher bits (16-23) of the address were ignored
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
diff -Nru a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c --- a/drivers/ide/ide-io.c 2005-02-19 17:38:53 +01:00 +++ b/drivers/ide/ide-io.c 2005-02-19 17:38:53 +01:00 @@ -238,9 +238,10 @@ high = ide_read_24(drive); } else { u8 cur = HWIF(drive)->INB(IDE_SELECT_REG); - if (cur & 0x40) + if (cur & 0x40) { + high = cur & 0xf; low = (hcyl << 16) | (lcyl << 8) | sect; - else { + } else { low = hcyl * drive->head * drive->sect; low += lcyl * drive->sect; low += sect - 1; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |