]> git.itanic.dy.fi Git - linux-stable/commit
mtd: spi-nor: default page_size to 256 bytes
authorMichael Walle <mwalle@kernel.org>
Fri, 8 Sep 2023 10:16:24 +0000 (12:16 +0200)
committerTudor Ambarus <tudor.ambarus@linaro.org>
Tue, 19 Sep 2023 15:49:39 +0000 (18:49 +0300)
commitd0cfd228b34c125b76a9a7fd2d69ebf9ff7e5534
treecf87ac733343dc0c534a04b37c096fa81e3737c6
parent0554effe99f6e9383172b091a3c4c7fd1ed3ef58
mtd: spi-nor: default page_size to 256 bytes

The INFO() macro always set the page_size to 256 bytes. Make that an
optional parameter. This default is a sane one for all older flashes,
newer ones will set the page size by its SFDP tables anyway.

Signed-off-by: Michael Walle <mwalle@kernel.org>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20230807-mtd-flash-info-db-rework-v3-6-e60548861b10@kernel.org
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
drivers/mtd/spi-nor/core.c
drivers/mtd/spi-nor/core.h