]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mtd: spi-nor: extend description of size member of struct flash_info
authorTudor Ambarus <tudor.ambarus@linaro.org>
Thu, 19 Dec 2024 09:20:04 +0000 (09:20 +0000)
committerPratyush Yadav <pratyush@kernel.org>
Mon, 13 Jan 2025 15:46:57 +0000 (15:46 +0000)
commitef262847122b7589d0a1056ab79c688645e2da21
tree20c32ee5d934c1852c9ab806449db6448c1a2a3c
parent93e00ccab5f7da0c479bbdc6fc08c7e42f07eb5e
mtd: spi-nor: extend description of size member of struct flash_info

We use the size as an indicator whether to parse SFDP or not. We don't
introduce a dedicated member for SFDP parsing because we'd like to keep
the struct size at a minimum, as it's used for every flash declaration.
Ideally we won't have flash entries at all, but there are still flash
parameters that aren't defined by SFDP, thus we need to statically
specify them.

Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Michael Walle <mwalle@kernel.org>
Signed-off-by: Pratyush Yadav <pratyush@kernel.org>
Link: https://lore.kernel.org/r/20241219-spi-nor-flash-info-size-desc-v1-1-6b53cf011027@linaro.org
drivers/mtd/spi-nor/core.h