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 4E46E1917E3; Tue, 29 Apr 2025 17:39:37 +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=1745948377; cv=none; b=JOLTO4sqCBdTML/9om4Hy785iR0HCy/cxuvFHdCgMamU+bVSa1lMTk5Jn6rGDJV9/2atbs9kzO/tkycBhXEXhftJYdngBlIyuNKLNzEgjwjaQXQNel0Ow++WzVPwgeVLwsc375Oz51i7xyuFaxlKi+i7iBK1C1IhkKDDMDiztmY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745948377; c=relaxed/simple; bh=MdllNsbDfHAPGV5rmbVxAswj6HvjmyRg8c2j/G3PilU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FqVhh1H5+8QjTODTfKICkYXMjw6nxEgYI3tvsHWrf15P3rdiBChYoJYP1DJQ5/byMBXs52S6Cm9tGjrJTna4QJzFBRncTVsQqfUYcvk9qahlPtmrR4mOLQ/RZ6Av1BGS4R4kweAXZBeX5dx+Puvz8d/0EN5m00jY2JrRZrEEqaA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FLRj0prt; 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="FLRj0prt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5355C4CEE3; Tue, 29 Apr 2025 17:39:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1745948377; bh=MdllNsbDfHAPGV5rmbVxAswj6HvjmyRg8c2j/G3PilU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FLRj0prt0l0UF4P83cfNIccDQjvU6FI0dWjzm6BSVDxeiRVbOOLU5j+oPUKAs78+L 937Ouldup6ctix9LlpRr4+7bnv91ixUK/fGbq8BFUlyIYPZE/NTUqHR75YJYF08APh y9SG2CIVFsoq/xnY9tcuuaz1q6alrUYZiPFC3LZ4= 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.12 240/280] spi: tegra210-quad: use WARN_ON_ONCE instead of WARN_ON for timeouts Date: Tue, 29 Apr 2025 18:43:01 +0200 Message-ID: <20250429161124.947995700@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250429161115.008747050@linuxfoundation.org> References: <20250429161115.008747050@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.12-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 43f11b0e9e765..94dc4cbc40e15 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