[PATCH] mtd: parsers: bcm47xxpart: Fix halfblock reads

Miquel Raynal miquel.raynal at bootlin.com
Tue Oct 18 01:15:45 PDT 2022


Hi Florian, Linus,

f.fainelli at gmail.com wrote on Mon, 17 Oct 2022 15:18:15 -0700:

> On 10/13/22 15:28, Linus Walleij wrote:
> > There is some code in the parser that tries to read 0x8000
> > bytes into a block to "read in the middle" of the block. Well
> > that only works if the block is also 0x10000 bytes all the time,
> > else we get these parse errors as we reach the end of the flash:
> > 
> > spi-nor spi0.0: mx25l1606e (2048 Kbytes)
> > mtd_read error while parsing (offset: 0x200000): -22  
> 
> Is it worth a Fixes: tag so it reaches stable eventually and we have this reach OpenWrt directly where it is presumably the most useful?

Agreed. Linus, can you resend with Fixes: tag? I'll apply it right away
to mtd/fixes.

Thanks,
Miquèl



More information about the linux-mtd mailing list