]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit777d37a807dad98d14b6c12b8397a76ddf2b627b
tree3cc97af664187c128a6ccde9ceddb63a25a1147c
parent719633ca5e056ab1a5c8dbfec9bc81d5cd8e84e0
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