[LEDE-DEV] [PATCH] ar71xx: fix flash fast read for flash chips > 16 MB

Felix Fietkau nbd at nbd.name
Fri Feb 23 00:50:35 PST 2018


On 2018-02-23 09:40, Rafał Miłecki wrote:
> On 22 February 2018 at 20:13, Christian Beier <dontmind at freeshell.org> wrote:
>> From: Christian Beier <cb at shoutrlabs.com>
>>
>> SPI fast flash read only is supported on devices using 3-byte-addressing.
>> As chips bigger than 16MB use 4-byte-addressing, reading fails with
>> -EOPNOTSUPP.
>>
>> This commit sets the fast flash read callback spi->master->spi_flash_read
>> to NULL for chips that use 4-byte-addressing.
>>
>> Fixes https://bugs.openwrt.org/index.php?do=details&task_id=1376.
>>
>> Signed-off-by: Christian Beier <cb at shoutrlabs.com>
> 
> Can you send this patch to the MTD mailing list, please?
> 
> Why adding it to the ar71xx target only?
I think this is the wrong place to fix it, the ath79 spi driver should
be changed instead.

- Felix



More information about the Lede-dev mailing list