mtd: spi-nor-core: Do not make invalid quad enable fatal
authorPratyush Yadav <p.yadav@ti.com>
Fri, 25 Jun 2021 19:17:22 +0000 (00:47 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 28 Jun 2021 06:34:09 +0000 (12:04 +0530)
commitb058f108d7d91f9a5f47c1d0d3ddf4e6ae030440
tree3cc97af664187c128a6ccde9ceddb63a25a1147c
parent6b808e0864dbd492d33e7149fb1666bef7e56049
mtd: spi-nor-core: 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 assuming there is no quad
enable bit present.

Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/mtd/spi/spi-nor-core.c