Patch "spi: s3c64xx: clear loopback bit after loopback test" has been added to the 6.1-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: clear loopback bit after loopback test

to the 6.1-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-clear-loopback-bit-after-loopback-test.patch
and it can be found in the queue-6.1 subdirectory.

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



commit f832b5453eead49443949271d5828c464703455b
Author: Jaewon Kim <jaewon02.kim@xxxxxxxxxxx>
Date:   Tue Jul 11 17:20:20 2023 +0900

    spi: s3c64xx: clear loopback bit after loopback test
    
    [ Upstream commit 9ec3c5517e22a12d2ff1b71e844f7913641460c6 ]
    
    When SPI loopback transfer is performed, S3C64XX_SPI_MODE_SELF_LOOPBACK
    bit still remained. It works as loopback even if the next transfer is
    not spi loopback mode.
    If not SPI_LOOP, needs to clear S3C64XX_SPI_MODE_SELF_LOOPBACK bit.
    
    Signed-off-by: Jaewon Kim <jaewon02.kim@xxxxxxxxxxx>
    Fixes: ffb7bcd3b27e ("spi: s3c64xx: support loopback mode")
    Reviewed-by: Chanho Park <chanho61.park@xxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20230711082020.138165-1-jaewon02.kim@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 71d324ec9a70a..1480df7b43b3f 100644
--- a/drivers/spi/spi-s3c64xx.c
+++ b/drivers/spi/spi-s3c64xx.c
@@ -668,6 +668,8 @@ static int s3c64xx_spi_config(struct s3c64xx_spi_driver_data *sdd)
 
 	if ((sdd->cur_mode & SPI_LOOP) && sdd->port_conf->has_loopback)
 		val |= S3C64XX_SPI_MODE_SELF_LOOPBACK;
+	else
+		val &= ~S3C64XX_SPI_MODE_SELF_LOOPBACK;
 
 	writel(val, regs + S3C64XX_SPI_MODE_CFG);
 



[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