Commit 359e8441 authored by Osamu Tomita's avatar Osamu Tomita Committed by Linus Torvalds

[PATCH] IDE PIO mode Fix

I found this bug in 2.5.10 first. And caused ext2 FS corruption.
We are porting Linux to PC-9801 architecture (made by NEC Japan).
It has PIO ONLY IDE I/F. So please check PIO mode too.

It was introduced in 2.5.9 and still exists in 2.5.13, and caused
superblock corruption for Andries.  This fixes it.
parent fbb9c153
...@@ -202,7 +202,7 @@ void ata_write(ide_drive_t *drive, void *buffer, unsigned int wcount) ...@@ -202,7 +202,7 @@ void ata_write(ide_drive_t *drive, void *buffer, unsigned int wcount)
ata_write_slow(drive, buffer, wcount); ata_write_slow(drive, buffer, wcount);
else else
#endif #endif
ata_write_16(drive, buffer, wcount<<1); ata_write_16(drive, buffer, wcount);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment