mtd: spi-nor: fsl-quadspi: fix unsupported cmd when run flash_erase
authorFrank Li <Frank.Li@freescale.com>
Tue, 4 Aug 2015 15:26:16 +0000 (10:26 -0500)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 6 Aug 2015 17:07:45 +0000 (10:07 -0700)
commit788a6cddda9ba83276e37567c17bb78406904074
treed04c87ae32bc1912a25d6afb165e20ad2108c7c6
parent8b8319c8b7d0385659c2df6376955cb6a1d918b6
mtd: spi-nor: fsl-quadspi: fix unsupported cmd when run flash_erase

Erase function will use cmd 0x20 (SPINOR_OP_BE_4K) if kenrel enable option
CONFIG_MTD_SPI_NOR_USE_4K_SECTORS.

This command is not in fsl-quadspi driver LUT. So driver continue report
fsl-quadspi 21e0000.qspi: Unsupported cmd 0x20.

This patch fix this issue.

Signed-off-by: Frank Li <Frank.Li@freescale.com>
Acked-by: Han Xu <Han.xu@freescale.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/spi-nor/fsl-quadspi.c