Patch "spi: stm32: Print summary 'callbacks suppressed' message" has been added to the 5.15-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    spi: stm32: Print summary 'callbacks suppressed' message

to the 5.15-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     spi-stm32-print-summary-callbacks-suppressed-message.patch
and it can be found in the queue-5.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit a6a17c02b59cccbcec2099916a4e0e4d81ed9ac4
Author: Marek Vasut <marex@xxxxxxx>
Date:   Tue Oct 18 20:35:13 2022 +0200

    spi: stm32: Print summary 'callbacks suppressed' message
    
    [ Upstream commit 195583504be28df5d608a4677dd796117aea875f ]
    
    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: ea8be08cc9358 ("spi: stm32: Rate-limit the 'Communication suspended' message")
    Signed-off-by: Marek Vasut <marex@xxxxxxx>
    Link: https://lore.kernel.org/r/20221018183513.206706-1-marex@xxxxxxx
    Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/spi/spi-stm32.c b/drivers/spi/spi-stm32.c
index 9bd3fd1652f7..96a73f9e2677 100644
--- a/drivers/spi/spi-stm32.c
+++ b/drivers/spi/spi-stm32.c
@@ -886,6 +886,7 @@ static irqreturn_t stm32h7_spi_irq_thread(int irq, void *dev_id)
 		static DEFINE_RATELIMIT_STATE(rs,
 					      DEFAULT_RATELIMIT_INTERVAL * 10,
 					      1);
+		ratelimit_set_flags(&rs, RATELIMIT_MSG_ON_RELEASE);
 		if (__ratelimit(&rs))
 			dev_dbg_ratelimited(spi->dev, "Communication suspended\n");
 		if (!spi->cur_usedma && (spi->rx_buf && (spi->rx_len > 0)))



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux