]> git.baikalelectronics.ru Git - kernel.git/commit
spi: stm32: Print summary 'callbacks suppressed' message
authorMarek Vasut <marex@denx.de>
Tue, 18 Oct 2022 18:35:13 +0000 (20:35 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 24 Oct 2022 11:40:39 +0000 (12:40 +0100)
commit7f625b976df40550201f387883d8e6f44d57fee3
treea30e867078377ebf9a757cffcb357ccd531eee44
parent655c8de5dfec20587d66f155907b4b6e2e6c8090
spi: stm32: Print summary 'callbacks suppressed' message

The original fix "spi: stm32: Rate-limit the 'Communication suspended' message"
still leads to "stm32h7_spi_irq_thread: 1696 callbacks suppressed" spew in the
kernel log. Since this 'Communication suspended' message is a debug print, add
RATELIMIT_MSG_ON_RELEASE flag to inhibit the "callbacks suspended" part during
normal operation and only print summary at the end.

Fixes: 8559b7379b19f ("spi: stm32: Rate-limit the 'Communication suspended' message")
Signed-off-by: Marek Vasut <marex@denx.de>
Link: https://lore.kernel.org/r/20221018183513.206706-1-marex@denx.de
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-stm32.c