Le 18/10/2018 à 13:55, Boris Brezillon a écrit : > When the NOR supports 4 bytes opcodes we should use those instead of > switching the flash in 4-bytes mode. This way, we don't have to restore > the addressing mode when resetting the board. > > Reported-by: Alexandre Belloni <alexandre.belloni@xxxxxxxxxxx> Reviewed-by: Cyrille Pitchen <cyrille.pitchen@xxxxxxxxxx> > Signed-off-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxx> > --- > Changes in v2: > - None > --- > drivers/mtd/spi-nor/spi-nor.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c > index 9155d3b9c37b..72536a5dfe05 100644 > --- a/drivers/mtd/spi-nor/spi-nor.c > +++ b/drivers/mtd/spi-nor/spi-nor.c > @@ -2643,6 +2643,7 @@ static int spi_nor_parse_bfpt(struct spi_nor *nor, > break; > > case BFPT_DWORD1_ADDRESS_BYTES_4_ONLY: > + case BFPT_DWORD1_ADDRESS_BYTES_3_OR_4: > nor->flags |= SNOR_F_4B_OPCODES; > nor->addr_width = 4; > break; > ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/