mtd: spi-nor: macronix: backport Quad Input Page Program fixups
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 1 replyIn review
- v12 patches 1 replySuperseded
Changes in v2 from the cover letter
- Patch 2: added .name for the mx66l2g45g/mx66u1g45g entries. v1 left them anonymous like the upstream (new-format) entries, but on 6.6.y drivers/mtd/spi-nor/core.c:spi_nor_match_name() does strcmp(name, manufacturers[i]->parts[j].name) while walking every manufacturer's part table to resolve a flash by name. A NULL .name makes that strcmp() dereference NULL as soon as the scan reaches either entry, i.e. an oops on any name-based spi-nor probe on the system, not just when probing these two parts.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | mtd: spi-nor: macronix: Add post_sfdp fixups for Quad Input Page Programdrivers/ | +28 | 0 replies | |
| 2/2 | mtd: spi-nor: macronix: add support for mx66{l2, u1}g45gdrivers/ | +4 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH 6.6.y v2 0/2] mtd: spi-nor: macronix: backport Quad Input Page Program fixups
From: Cheng Ming Lin <[email protected]>
This is a backport of two upstream commits to 6.6.y:
commit 798aafeffb36 ("mtd: spi-nor: macronix: Add post_sfdp fixups for Quad Input Page Program")
commit 797bbaa7531f ("mtd: spi-nor: macronix: add support for mx66{l2, u1}g45g")
Neither commit was tagged for -stable when merged. 6.6.y also predates commit 09e5a29fa3ad ("mtd: spi-nor: macronix: convert flash_info to new format"), which landed in v6.10, so drivers/mtd/spi-nor/macronix.c is still in the old INFO()/NO_SFDP_FLAGS()/FIXUP_FLAGS() macro-based format. Both patches have been adapted to that format with no other functional change; patch 2 depends on the macronix_qpp4b_fixups hook introduced by patch 1.
Changes in v2:
- Patch 2: added .name for the mx66l2g45g/mx66u1g45g entries. v1 left them anonymous like the upstream (new-format) entries, but on 6.6.y drivers/mtd/spi-nor/core.c:spi_nor_match_name() does strcmp(name, manufacturers[i]->parts[j].name) while walking every manufacturer's part table to resolve a flash by name. A NULL .name makes that strcmp() dereference NULL as soon as the scan reaches either entry, i.e. an oops on any name-based spi-nor probe on the system, not just when probing these two parts.
Cheng Ming Lin (2):
mtd: spi-nor: macronix: Add post_sfdp fixups for Quad Input Page
Program
mtd: spi-nor: macronix: add support for mx66{l2, u1}g45g
drivers/mtd/spi-nor/macronix.c | 37 +++++++++++++++++++++++++++++----- 1 file changed, 32 insertions(+), 5 deletions(-)
Signature · 1 line
2.25.1