]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: spi-nor: spansion: Set ECC block size
authorPratyush Yadav <p.yadav@ti.com>
Tue, 1 Dec 2020 10:27:11 +0000 (15:57 +0530)
committerVignesh Raghavendra <vigneshr@ti.com>
Mon, 7 Dec 2020 17:27:29 +0000 (22:57 +0530)
commitb4db7b487bab0fdfe47daf207c50ee177f4f2bcd
treef78932854dcc7be9f965b8dcbb4ed9e06536f9ab
parent598df656667db3eb7b35225e914e958474fe3240
mtd: spi-nor: spansion: Set ECC block size

The S28 flash family uses 2-bit ECC by default with each ECC block being
16 bytes. Under this scheme multi-pass programming to an ECC block is
not allowed. Set the writesize to make sure multi-pass programming is
not attempted on the flash.

Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Link: https://lore.kernel.org/r/20201201102711.8727-4-p.yadav@ti.com
drivers/mtd/spi-nor/spansion.c