Re: [PATCH v3 3/4] mtd: spi-nor-core: set 4byte opcode when possible

2021-09-26 Thread liao jaime
>if (spi_nor_protocol_is_dtr(nor->read_proto)) { > /* Always use 4-byte addresses in DTR mode. */ >nor->addr_width = 4; because of nor->addr_width have been set to 4 when protocol is dtr >} else if (nor->addr_width) { >/* already configured fr

Re: [PATCH v3 3/4] mtd: spi-nor-core: set 4byte opcode when possible

2021-09-24 Thread Pratyush Yadav
On 13/09/21 01:42PM, JaimeLiao wrote: > Following linux kernel to check address width and 4byte flag to enable > 4byte opcode setting. > > Signed-off-by: JaimeLiao > --- > drivers/mtd/spi/spi-nor-core.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/drivers/mtd/spi/spi-nor-core.c

[PATCH v3 3/4] mtd: spi-nor-core: set 4byte opcode when possible

2021-09-13 Thread JaimeLiao
Following linux kernel to check address width and 4byte flag to enable 4byte opcode setting. Signed-off-by: JaimeLiao --- drivers/mtd/spi/spi-nor-core.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c index 4bcd58d839..81c61