]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mtd: spi-nor: fix nor->addr_width when its value configured from SFDP does not match...
authorLiu Xiang <liu.xiang6@zte.com.cn>
Mon, 24 Jun 2019 16:00:46 +0000 (00:00 +0800)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Thu, 27 Jun 2019 14:13:22 +0000 (17:13 +0300)
commitcf580a92400584a48f59e07c372a635160340864
tree1c285fbe68df56935a33648020834ab20de0be67
parent62de37da9f382455b983f2f92b10012109005278
mtd: spi-nor: fix nor->addr_width when its value configured from SFDP does not match the actual width

IS25LP256 gets BFPT_DWORD1_ADDRESS_BYTES_3_ONLY from BFPT table for
address width. But in actual fact the flash can support 4-byte address.
Use a post bfpt fixup hook to overwrite the address width advertised by
the BFPT.

Signed-off-by: Liu Xiang <liu.xiang6@zte.com.cn>
Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
drivers/mtd/spi-nor/spi-nor.c