mbox series

[0/4] Add WATCHDOG_RESET() in MTD framework and STM32 QSPI driver

Message ID 20210120134205.30488-1-patrice.chotard@foss.st.com
Headers show
Series Add WATCHDOG_RESET() in MTD framework and STM32 QSPI driver | expand

Message

Patrice CHOTARD Jan. 20, 2021, 1:42 p.m. UTC
In case of large area read/write/erase on spi nor and spi nand,
watchdog may occurs depending on watchdog timeout and MTD device size.
Some of these use-cases has been reproduced with stm32mp157-ev1 board.

To prevent this situation, WATHDOG_RESET() are added at several
location:
  - Add WATCHDOG_RESET() in spi_nor_erase() and spi_nor_write()
  - Add WATCHDOG_RESET() in _stm32_qspi_read_fifo()
  - Add WATCHDOG_RESET() in nanddev_mtd_erase()
  - Add WATCHDOG_RESET() in spinand_mtd_read() and spinand_mtd_erase()


Patrice Chotard (4):
  mtd: spi-nor: Add WATCHDOG_RESET() in spi_nor_core callbacks
  spi: stm32_qspi: Add WATCHDOG_RESET in _stm32_qspi_read_fifo()
  mtd: nand: Add WATCHDOG_RESET() in nanddev_mtd_erase()
  mtd: spinand: Add WATCHDOG_RESET() in spinand_mtd_read/write()

 drivers/mtd/nand/core.c        | 2 ++
 drivers/mtd/nand/spi/core.c    | 3 +++
 drivers/mtd/spi/spi-nor-core.c | 3 +++
 drivers/spi/stm32_qspi.c       | 2 ++
 4 files changed, 10 insertions(+)