Hi, Hauke, On 12/09/2018 07:03 PM, Hauke Mehrtens wrote: > From: Piotr Dymacz <pepe2k@xxxxxxxxx> > > The datasheet can be found here: > https://tonyho.github.io/static/SPINorFlash/docs/EN25Q128.pdf I wouldn't add links to personal sites. It would be nice to specify how you tested this memory. > > Signed-off-by: Piotr Dymacz <pepe2k@xxxxxxxxx> You should add your SoB as you are sending a patch that is not from you. > --- > 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 0e9bbde30be0..a21b1a26130d 100644 > --- a/drivers/mtd/spi-nor/spi-nor.c > +++ b/drivers/mtd/spi-nor/spi-nor.c > @@ -1286,6 +1286,7 @@ static const struct flash_info spi_nor_ids[] = { > { "en25q32b", INFO(0x1c3016, 0, 64 * 1024, 64, 0) }, > { "en25p64", INFO(0x1c2017, 0, 64 * 1024, 128, 0) }, > { "en25q64", INFO(0x1c3017, 0, 64 * 1024, 128, SECT_4K) }, > + { "en25q128", INFO(0x1c3018, 0, 64 * 1024, 256, SECT_4K) }, The flash supports SPINOR_OP_READ_1_1_2, SPINOR_OP_READ_1_2_2 and SPINOR_OP_READ_1_4_4, but doesn't support SPINOR_OP_READ_1_1_4. I would advise to set SPI_NOR_DUAL_READ so that you'll benefit of the SPINOR_OP_READ_1_1_2. Looks like the flash doesn't have support for BFPT, unfortunately as of now you can't benefit of read-1-4-4. Please set SPI_NOR_DUAL_READ and test if SPINOR_OP_READ_1_1_2 works correctly and if so, submit a new patch. Cheers, ta ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/