[PATCH v3 1/3] mtd-nand: Add "page" parameter to all read_page/read_page_raw APIs

Singh, Vimal IMCEAEX-_O=TI_OU=BD_CN=RECIPIENTS_CN=X0094262 at dlee86.itg.ti.com
Fri Jul 17 10:45:27 EDT 2009


> > Why not just adding 'page' or 'cur_page' parameter to 'mtd_info' structure and
> > populate the same in 'nand_do_read_ops' and 'nand_do_write_ops' as soon as you
> > calculate 'page' for every read and write access respectivily. And then this
> > info can be used by any one who has knowledge of 'mtd_info'.
> >
> Yes, that was one option. This meant, some of the existing handlers for read_oob and write_oob required changes to get rid of "page", if we decide to use the page from mtd_info structure.

But that would have taken less changes.

-vimal


More information about the linux-mtd mailing list