On 4/15/24 05:33, tkuw584...@gmail.com wrote: > diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c > index 8f371a5213..773afd4040 100644 > --- a/drivers/mtd/spi/spi-nor-core.c > +++ b/drivers/mtd/spi/spi-nor-core.c > @@ -3459,6 +3459,13 @@ static void s25_default_init(struct spi_nor *nor, > struct spi_nor_flash_parameter *params) > { > nor->setup = s25_s28_setup; > + > + /* > + * Programming is supported only in 16-byte ECC data unit granularity. > + * Byte-programming, bit-walking, or multiple program operations to the > + * same ECC data unit without an erase are not allowed. > + */ > + params->writesize = 16; > } Use late_init() please. Looks good. ta
- [PATCH 1/4] mtd: ubi: Do not zero out EC and VID on ECC-ed... tkuw584924
- Re: [PATCH 1/4] mtd: ubi: Do not zero out EC and VID ... Tudor Ambarus
- [PATCH 2/4] mtd: spi-nor: Allow flashes to specify MTD wri... tkuw584924
- Re: [PATCH 2/4] mtd: spi-nor: Allow flashes to specif... Tudor Ambarus
- [PATCH 3/4] mtd: spi-nor-core: Rework default_init() to ta... tkuw584924
- Re: [PATCH 3/4] mtd: spi-nor-core: Rework default_ini... Tudor Ambarus
- Re: [PATCH 3/4] mtd: spi-nor-core: Rework default... Takahiro Kuwano
- Re: [PATCH 3/4] mtd: spi-nor-core: Rework def... Tudor Ambarus
- Re: [PATCH 3/4] mtd: spi-nor-core: Rework... Takahiro Kuwano
- [PATCH 4/4] mtd: spi-nor: Set ECC unit size to MTD writesi... tkuw584924
- Re: [PATCH 4/4] mtd: spi-nor: Set ECC unit size to MT... Tudor Ambarus
- Re: [PATCH 0/4] mtd: Make sure UBIFS does not do multi-pas... Tudor Ambarus
- Re: [PATCH 0/4] mtd: Make sure UBIFS does not do mult... Takahiro Kuwano