summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2023-03-31 22:46:19 +0300
committerTudor Ambarus <tudor.ambarus@linaro.org>2023-04-04 09:40:38 +0300
commit79a4db50192c196757e1dffa7f590fc7080ad746 (patch)
tree845fa823ee263e0bc0236a09661ea6a53cc17702 /Documentation
parent705c9ef831ce505f007d0af3fed2475764619533 (diff)
downloadlinux-79a4db50192c196757e1dffa7f590fc7080ad746.tar.xz
mtd: spi-nor: Delay the initialization of bank_size
Bank size is derived from the chip's size, which in spi_nor_init_default_params() can still be zero if the flash size is not specified at flash declaration. Let the flash size be updated by parsing SFDP and do the initialization of the bank size in spi_nor_late_init_params(). Flashes that don't define the SFDP tables must specify the flash size at declaration. Fixes: 9d6c5d64f028 ("mtd: spi-nor: Introduce the concept of bank") Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/r/20230331194620.839899-1-miquel.raynal@bootlin.com [ta: drop superfluous initialization in spi_nor_init_default_params(), reword commit message, add Fixes tag.] Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions