]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: spi-nor: scale up timeout for full-chip erase
authorVenkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Tue, 2 Jan 2024 12:53:03 +0000 (18:23 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 19 Sep 2024 22:42:31 +0000 (16:42 -0600)
commit948616894c6d3316a5ac8f2a891783e3e7ff3516
tree0572db69576f28928bb52da3dca7197eb1f94133
parent146be6f0362e16b112e72bdbb5c2d359dc65c890
mtd: spi-nor: scale up timeout for full-chip erase

This patch fixes timeout issues seen on large NOR flash.
For full-chip erase, where we use the SPINOR_OP_CHIP_ERASE (0xc7)
opcode. Use a different timeout for full-chip erase than for other
commands.

 [Ported from Linux kernel commit
                09b6a377687b ("mtd: spi-nor: scale up timeout for
                               full-chip erase") ]

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
drivers/mtd/spi/spi-nor-core.c