]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: spi-nor: Add WATCHDOG_RESET() in spi_nor_core callbacks
authorPatrice Chotard <patrice.chotard@foss.st.com>
Wed, 20 Jan 2021 13:42:01 +0000 (14:42 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Thu, 11 Mar 2021 15:36:32 +0000 (16:36 +0100)
commit5988575a9006e4171a5a59721a537a51f12fabe6
tree03e6afc533e934e54c60d58c83f40561a6ba214d
parentc5219c4a18f2b27547ecd799914f94e48b0fa86f
mtd: spi-nor: Add WATCHDOG_RESET() in spi_nor_core callbacks

In case of big area write/erase on spi nor, watchdog timeout may occurs.
Issue reproduced on stm32mp157c-ev1 with following commands:

sf write 0xC0000000 0 0x3000000
or
sf erase 0 0x1000000

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
drivers/mtd/spi/spi-nor-core.c