[PATCH 0/3] s3c2440_nand_*_buf fix and improvements

Werner Almesberger werner at openmoko.org
Mon Nov 3 17:21:44 CET 2008


Hi Ben,

here's the new set of changes:

s3c2440-nand-shift-not-div.patch changes the signed divisions to
shifts, saving 24 bytes.

s3c2440-nand-use-iomem.patch uses chip->IO_ADDR_* (which is __iomem)
instead of info->regs + S3C2440_NFDATA, getting rid of those pesky
reloads and saving another eight bytes.

s3c2440-nand-handle-bytes.patch adds handling of non-word lengths.
For completeness, I've also added it to s3c2440_nand_write_buf,
even though there's no code yet that would exercise this possibility.

Note that the unlikely() in the for loop saves eight bytes each.

- Werner



More information about the openmoko-kernel mailing list