[PATCH] m25p80: add support for a callback to platform code on successful device probe

Sudhakar Rajashekhara sudhakar.raj at ti.com
Tue Aug 10 05:26:39 EDT 2010


On Tue, Aug 10, 2010 at 12:47:05, Mike Frysinger wrote:
> On Tue, Aug 10, 2010 at 02:42, Sudhakar Rajashekhara wrote:
> > On some platforms, MTD device can hold MAC address, calibration
> > data, serial numbers etc.
> pretty standard behavior ...
> > On TI's DA850/OMAP-L138/AM18xx EVM, MAC address is stored on
> > the last sector of the SPI flash, which is exported as an MTD
> > device.
> again, nothing unique here ...
> > This patch adds two new members to the 'flash_platform_data'
> > structure, a function handler which will be called after
> > add_mtd_device() and an argument to be passed to this function,
> > for example: offset to read from.
> ... and your changelog falls apart.  the intro gives no basis that i
> can see as to why you need these hooks.
> please give examples of what you're actually trying to accomplish and
> how these hooks help you accomplish said goal and why it is necessary
> that you do these things from kernel space instead of standard
> userspace.

I have submitted an updated version of this patch in which I have
addressed your concerns.


More information about the linux-mtd mailing list