RE: [PATCH] mtd: m25p80: Modify the name of mtd_info

2014-04-21 Thread b48...@freescale.com
.org > Subject: Re: [PATCH] mtd: m25p80: Modify the name of mtd_info > > On Fri, Mar 21, 2014 at 07:16:18PM +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 parse

Re: [PATCH] mtd: m25p80: Modify the name of mtd_info

2014-04-15 Thread Brian Norris
On Fri, Mar 21, 2014 at 07:16:18PM +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

Re: [PATCH] mtd: m25p80: Modify the name of mtd_info

2014-03-21 Thread Scott Wood
On Fri, 2014-03-21 at 19:16 +0800, Hou Zhiqiang wrote: > @@ -1009,8 +1012,17 @@ static int m25p_probe(struct spi_device *spi) > > if (data && data->name) > flash->mtd.name = data->name; > - else > - flash->mtd.name = dev_name(&spi->dev); > + else{ Whitespa

[PATCH] mtd: m25p80: Modify the name of mtd_info

2014-03-21 Thread Hou Zhiqiang
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_nu