]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: spi-nor: sfdp: do not make invalid quad enable fatal
authorPratyush Yadav <p.yadav@ti.com>
Tue, 23 Jun 2020 18:30:24 +0000 (00:00 +0530)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Mon, 13 Jul 2020 07:43:19 +0000 (10:43 +0300)
commitec1f8f9186af2e1a743d82204b05a7e0a24026f9
tree36e5d2d70f6fc4a0208a51c8876192423b880db5
parentc7ff11b73abb6c825232013b4dd4fe60de505cf3
mtd: spi-nor: sfdp: do not make invalid quad enable fatal

The Micron MT35XU512ABA flash does not support the quad enable bit. But
instead of programming the Quad Enable Require field to 000b ("Device
does not have a QE bit"), it is programmed to 111b ("Reserved").

While this is technically incorrect, it is not reason enough to abort
BFPT parsing. Instead, continue BFPT parsing and let flashes set it in
their fixup hooks.

Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Link: https://lore.kernel.org/r/20200623183030.26591-12-p.yadav@ti.com
drivers/mtd/spi-nor/sfdp.c