acceptable chip driver limitations
David Woodhouse
dwmw2 at infradead.org
Tue Jun 5 05:00:10 EDT 2001
abraham at 2d3d.co.za said:
> No, I'm talking about mtd->read() and mtd->write. Surely they can
> return errors? If not, what about physical write/read errors?
Sorry, I misunderstood. No, that is not acceptable. You must accept
unaligned and odd-sized writes. You can just special-case the first and
last read/write cycles, padding writes with 0xFF. See how the existing
driver for Intel chips does it.
--
dwmw2
More information about the linux-mtd
mailing list