Re: [PATCH 1/1] arm: Fix unavailable MTD userland devices on Excito B3 boards

Andrew Lunn
2015-02-07T17:36:42Z

On Sat, Feb 07, 2015 at 06:15:12PM +0100, Gordon Bos wrote:
> Hi Andrew,
>
> Unsure how it can work for you, but this is the corresponding entry
> from the Excito release:
>
> ---
> |/*****************************************************************************
> * 2048KB SPI Flash on Boot Device (Numonyx MP25P16)
> ****************************************************************************/
>
> static struct mtd_partition bubba3_flash_parts[] = {
> {
> .name = "u-boot",
> .size = SZ_512K+SZ_256K,
> .offset = 0,
> },
> {
> .name = "env",
> .size = SZ_128K,
> .offset = MTDPART_OFS_NXTBLK,
> },
> {
> .name = "data",
> .size = MTDPART_SIZ_FULL,
> .offset = MTDPART_OFS_NXTBLK,
> },
> };
>
> static const struct flash_platform_data bubba3_flash = {
> .type = "m25p16",

So the device is a m25p16.

> .name = "spi_flash",
> .parts = bubba3_flash_parts,
> .nr_parts = ARRAY_SIZE(bubba3_flash_parts),
> };
>
> static struct spi_board_info __initdata bubba3_spi_slave_info[] = {
> {
> .modalias = "m25p80",

And the driver is m25p80.

This is consistent with the current device tree description.

So what actually happens when you use the mainline DT on your device?

I'm not going to accept any changes until we understand what problems
you have and why it works for me.

Thanks
Andrew