]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
spi: tegra210-quad: use WARN_ON_ONCE instead of WARN_ON for timeouts
authorBreno Leitao <leitao@debian.org>
Tue, 1 Apr 2025 13:47:49 +0000 (06:47 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:47:07 +0000 (07:47 +0200)
commit009847bd69ac766ebda67ac5146583a3d3cb0b49
tree0e99800056c3e8ef5b9123c01c70612163c53ecd
parent342a5dfc21ca8c288cc5d3e1db6c3ced0eb3a17f
spi: tegra210-quad: use WARN_ON_ONCE instead of WARN_ON for timeouts

[ Upstream commit 41c721fc093938745d116c3a21326a0ee03bb491 ]

Some machines with tegra_qspi_combined_seq_xfer hardware issues generate
excessive kernel warnings, severely polluting the logs:

    dmesg | grep -i "WARNING:.*tegra_qspi_transfer_one_message" | wc -l
    94451

This patch replaces WARN_ON with WARN_ON_ONCE for timeout conditions to
reduce log spam. The subsequent error message still prints on each
occurrence, providing sufficient information about the failure, while
the stack trace is only needed once for debugging purposes.

Signed-off-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20250401-tegra-v2-1-126c293ec047@debian.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-tegra210-quad.c