Patch "spi: s3c64xx: correct dma_chan pointer initialization" has been added to the 6.0-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: s3c64xx: correct dma_chan pointer initialization

to the 6.0-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-s3c64xx-correct-dma_chan-pointer-initialization.patch
and it can be found in the queue-6.0 subdirectory.

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



commit 2f0cd3195ee34088aea2f7664de5f06697523565
Author: Chanho Park <chanho61.park@xxxxxxxxxxx>
Date:   Mon Aug 8 09:48:51 2022 +0900

    spi: s3c64xx: correct dma_chan pointer initialization
    
    [ Upstream commit dad57a510db9423a4128ae6565854e999cebac51 ]
    
    Use NULL for dma channel pointer initialization instead of plain integer.
    
    sparse warnings: (new ones prefixed by >>)
    >> drivers/spi/spi-s3c64xx.c:387:34: sparse: sparse: Using plain integer as NULL pointer
       drivers/spi/spi-s3c64xx.c:388:34: sparse: sparse: Using plain integer as NULL pointer
    
    Reported-by: kernel test robot <lkp@xxxxxxxxx>
    Fixes: 82295bc0d192 ("spi: s3c64xx: move dma_release_channel to unprepare")
    Fixes: f52b03c70744 ("spi: s3c64xx: requests spi-dma channel only during data transfer")
    Signed-off-by: Chanho Park <chanho61.park@xxxxxxxxxxx>
    Reviewed-by: Andi Shyti <andi@xxxxxxxxxxx>
    Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20220808004851.25122-1-chanho61.park@xxxxxxxxxxx
    Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c
index 7f346866614a..651c35dd9124 100644
--- a/drivers/spi/spi-s3c64xx.c
+++ b/drivers/spi/spi-s3c64xx.c
@@ -389,8 +389,8 @@ static int s3c64xx_spi_unprepare_transfer(struct spi_master *spi)
 	if (sdd->rx_dma.ch && sdd->tx_dma.ch) {
 		dma_release_channel(sdd->rx_dma.ch);
 		dma_release_channel(sdd->tx_dma.ch);
-		sdd->rx_dma.ch = 0;
-		sdd->tx_dma.ch = 0;
+		sdd->rx_dma.ch = NULL;
+		sdd->tx_dma.ch = NULL;
 	}
 
 	return 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