]> git.baikalelectronics.ru Git - uboot.git/commit
spi: stm32_qspi: Add WATCHDOG_RESET in _stm32_qspi_read_fifo()
authorPatrice Chotard <patrice.chotard@foss.st.com>
Wed, 20 Jan 2021 13:42:02 +0000 (14:42 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Thu, 11 Mar 2021 15:59:16 +0000 (16:59 +0100)
commit73e1ba79b10b92cdd8914c4ac78b78f35b382f21
tree4375ec914cf5b78c2281503d7f34dad540b06cf1
parent6fd2a316f6ce9217ce5d9ae0d3adbdc2142bdd93
spi: stm32_qspi: Add WATCHDOG_RESET in _stm32_qspi_read_fifo()

In case of reading large area and memory-map mode is misconfigured
(memory-map size declared lower than the real size of the memory chip)
watchdog can be triggered.

Add WATCHDOG_RESET() in _stm32_qspi_read_fifo to fix it.

Issue reproduced with stm32mp157c-ev1 board and memory map size set to
1, with following command:
sf read 0xC0000000 0 0x4000000

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