From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9CD6C155A4E; Tue, 29 Apr 2025 18:18:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745950721; cv=none; b=FryE15jJhoblr9VVuLfaHhFQfmxlxUfgtuFri6KdnUFK7t08tiUk5ESjFzLqDkxPNYi7c0ZOY7jHJdLQPW9sFzz13cxd+DDMrMGukqfvcIoZ0Gub4srxsmnSYLX4uU8XplkPpkXrIGdW9dY1r+vWTpTESEwrejBAjsdqJTCCNRE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745950721; c=relaxed/simple; bh=xbbsjVY6nJGPzVaopsJyOT492kS3pZgOl4pkXKPJC/c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TdpPQnQoZ76sjWguCez2HCAEL5cSLP8N/IfowoLtUvoFkxw19y+iWyawDGfxMiy417i82DRMx1HpCQGoE3gKoANyi1BX2ghKWAwHJGYGRSz9SxA56R299eVgPuq5r9Y3mOgl86g1N3EFhax7UiAm/mADmA5IBYPhIyfxMgKjZNw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MV0Q1S4+; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="MV0Q1S4+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0BA33C4CEE3; Tue, 29 Apr 2025 18:18:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1745950721; bh=xbbsjVY6nJGPzVaopsJyOT492kS3pZgOl4pkXKPJC/c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MV0Q1S4+2fitX5TJVLeowROGoMkSV9lJuo/I9mrkxeFvZxaYz1Uh//GBaRRTGzKum crR5e64INmUmRVwum5G+vwWV8WoV2NRmUjMjVqCHlAzF8Vm0ElLqmRPkiog+E3zLaf m8zfYMK09uShcw/rSNLxtpuFJ0+FKLIYs/DcbHvM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Breno Leitao , Mark Brown , Sasha Levin Subject: [PATCH 6.6 183/204] spi: tegra210-quad: use WARN_ON_ONCE instead of WARN_ON for timeouts Date: Tue, 29 Apr 2025 18:44:31 +0200 Message-ID: <20250429161106.878878214@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250429161059.396852607@linuxfoundation.org> References: <20250429161059.396852607@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Breno Leitao [ 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 Link: https://patch.msgid.link/20250401-tegra-v2-1-126c293ec047@debian.org Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/spi/spi-tegra210-quad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-tegra210-quad.c b/drivers/spi/spi-tegra210-quad.c index d1afa4140e8a2..2abb54f9a9ba4 100644 --- a/drivers/spi/spi-tegra210-quad.c +++ b/drivers/spi/spi-tegra210-quad.c @@ -1117,7 +1117,7 @@ static int tegra_qspi_combined_seq_xfer(struct tegra_qspi *tqspi, (&tqspi->xfer_completion, QSPI_DMA_TIMEOUT); - if (WARN_ON(ret == 0)) { + if (WARN_ON_ONCE(ret == 0)) { dev_err(tqspi->dev, "QSPI Transfer failed with timeout: %d\n", ret); if (tqspi->is_curr_dma_xfer && -- 2.39.5