[PATCH] mtd: add setup/teardown callbacks to plat_nand

Mike Frysinger vapier.adi at gmail.com
Mon Feb 9 17:28:03 EST 2009


On Mon, Feb 9, 2009 at 16:37, hartleys wrote:
> Add optional setup and teardown callbacks to the plat_nand driver.
>
> Some platforms may require additional setup, such as configuring the
> memory controller, before the nand device can be accessed.  This patch
> provides an optional callback to handle this setup as well as a callback
> to teardown the setup.

on our platforms, we've been putting the setup into the board init
code.  but it would certainly be much saner to have explicit steps for
it in the plat_nand code as you suggest.

i think having the naming convention follow existing practices would
be better.  then we dont have to keep our index of synonyms around.
i.e. change "setup" to "probe" and "teardown" to "remove"
-mike



More information about the linux-mtd mailing list