]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mtd: spi-nor: macronix: Drop the redundant flash info fields
authorCheng Ming Lin <chengminglin@mxic.com.tw>
Mon, 7 Apr 2025 07:53:58 +0000 (15:53 +0800)
committerPratyush Yadav <pratyush@kernel.org>
Tue, 8 Apr 2025 15:00:51 +0000 (15:00 +0000)
commit947c86e481a027ed5948434096e506f307bd7114
tree147605b7a84e700ce15b1e2caa00e8319433dbe2
parent0af2f6be1b4281385b618cb86ad946eded089ac8
mtd: spi-nor: macronix: Drop the redundant flash info fields

Many flash devices share the same ID but have different part numbers.
To avoid confusion, the part number field is removed.

Additionally, since SFDP already provides size information and
functionality covered by no_sfdp_flags, these fields are also removed.

Furthermore, when 4-byte address instruction table is available,
the SPI_NOR_4B_OPCODES flag is no longer needed and is removed.

Signed-off-by: Cheng Ming Lin <chengminglin@mxic.com.tw>
Acked-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Pratyush Yadav <pratyush@kernel.org>
Link: https://lore.kernel.org/r/20250407075400.1113177-2-linchengming884@gmail.com
drivers/mtd/spi-nor/macronix.c