[PATCH v3] mtd: nand: pxa3xx: Fix registered MTD name

Brian Norris computersforpeace at gmail.com
Thu Oct 24 15:15:36 PDT 2013


On Sat, Oct 19, 2013 at 06:19:25PM -0300, Ezequiel Garcia wrote:
> In a recent commit:
> 
>   commit f455578dd961087a5cf94730d9f6489bb1d355f0
>   Author: Ezequiel Garcia <ezequiel.garcia at free-electrons.com>
>   Date:   Mon Aug 12 14:14:53 2013 -0300
> 
>   mtd: nand: pxa3xx: Remove hardcoded mtd name
> 
>   There's no advantage in using a hardcoded name for the mtd device.
>   Instead use the provided by the platform_device.
> 
> The MTD name was changed to use the one provided by the platform_device.
> However, this can be problematic as some users want to set partitions
> using the kernel parameter 'mtdparts', where the name is needed.
> 
> Therefore, to avoid regressions in users relying in 'mtdparts' we revert
> the change and use the previous one 'pxa3xx_nand-0'.
> 
> While at it, let's put a big comment and prevent this change from happening
> ever again.
> 
> Signed-off-by: Ezequiel Garcia <ezequiel.garcia at free-electrons.com>

Pushed to linux-mtd.git, in hopes to submit a pull request for 3.12.

David, I have pushed and signed (with my new key) this and Huang's
regression fix to linux-mtd.git. I can send a pull request, or you can
just drop my tag and do it yourself. I'm not sure how long to wait at
this stage in the release cycle...

Brian



More information about the linux-mtd mailing list