Patch "ASoC: cs35l56: Accept values greater than 0 as IRQ numbers" has been added to the 6.10-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

    ASoC: cs35l56: Accept values greater than 0 as IRQ numbers

to the 6.10-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:
     asoc-cs35l56-accept-values-greater-than-0-as-irq-num.patch
and it can be found in the queue-6.10 subdirectory.

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



commit 909ac205fe61cb4efa61e7bb29cfc482ff32a08d
Author: Simon Trimmer <simont@xxxxxxxxxxxxxxxxxxxxx>
Date:   Mon Jun 17 14:53:38 2024 +0100

    ASoC: cs35l56: Accept values greater than 0 as IRQ numbers
    
    [ Upstream commit 3ec1428d7b7c519d757a013cef908d7e33dee882 ]
    
    IRQ lookup functions such as those in ACPI can return error values when
    an IRQ is not defined. The i2c core driver converts the error codes to a
    value of 0 and the SPI bus driver passes them unaltered to client device
    drivers.
    
    The cs35l56 driver should only accept positive non-zero values as IRQ
    numbers.
    
    Signed-off-by: Simon Trimmer <simont@xxxxxxxxxxxxxxxxxxxxx>
    Fixes: 8a731fd37f8b ("ASoC: cs35l56: Move utility functions to shared file")
    Link: https://msgid.link/r/20240617135338.82006-1-simont@xxxxxxxxxxxxxxxxxxxxx
    Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/sound/soc/codecs/cs35l56-shared.c b/sound/soc/codecs/cs35l56-shared.c
index 30497152e02a7..f609cade805d7 100644
--- a/sound/soc/codecs/cs35l56-shared.c
+++ b/sound/soc/codecs/cs35l56-shared.c
@@ -397,7 +397,7 @@ int cs35l56_irq_request(struct cs35l56_base *cs35l56_base, int irq)
 {
 	int ret;
 
-	if (!irq)
+	if (irq < 1)
 		return 0;
 
 	ret = devm_request_threaded_irq(cs35l56_base->dev, irq, NULL, cs35l56_irq,




[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