On Mon, Apr 21, 2014 at 07:06:21PM +0800, Hou Zhiqiang wrote:
> To specify spi flash layouts by "mtdparts=..." in cmdline, we must
> give mtd_info a fixed name,because the cmdlinepart's parser will
> match the name of mtd_info given in cmdline.
> Now, if use DT, the mtd_info's name will be spi->dev->name. It
> consists of spi_master->bus_num, and the spi_master->bus_num maybe
> dynamically fetched. So, in this case, replace the component bus_num
> with thei physical address of spi master.
> 
> Signed-off-by: Hou Zhiqiang <b48...@freescale.com>
> ---
> V4:
>       add check no-NULL for pointer of master's device node, and if it failed
>       to get physcial address of the master, then name the mtd_info by the
>       name of spi->dev.
> V3:
>       Fix a bug, matching unsigned long long with "%llx".
> V2:
>       1. Fix some code style issue.
>       2. Cast physical address to unsigned long long.
> 
>  drivers/mtd/devices/m25p80.c | 16 ++++++++++++++--
please rebase this patch on the latest l2-mtd tree.

thanks
Huang Shijie
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to