Patch "spi: spi-gxp: BUG: Correct spi write return value" 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: spi-gxp: BUG: Correct spi write return value

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-spi-gxp-bug-correct-spi-write-return-value.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 9df3c952575323aac48207d6854fdca75954b5f2
Author: Charles Kearney <charles.kearney@xxxxxxx>
Date:   Wed Sep 20 21:53:39 2023 +0000

    spi: spi-gxp: BUG: Correct spi write return value
    
    [ Upstream commit 1a8196a93e493c0a50b800cb09cef60b124eee15 ]
    
    Bug fix to correct return value of gxp_spi_write function to zero.
    Completion of succesful operation should return zero.
    
    Fixes: 730bc8ba5e9e spi: spi-gxp: Add support for HPE GXP SoCs
    
    Signed-off-by: Charles Kearney <charles.kearney@xxxxxxx>
    Link: https://lore.kernel.org/r/20230920215339.4125856-2-charles.kearney@xxxxxxx
    Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/spi/spi-gxp.c b/drivers/spi/spi-gxp.c
index c900c2f39b578..21b07e2518513 100644
--- a/drivers/spi/spi-gxp.c
+++ b/drivers/spi/spi-gxp.c
@@ -195,7 +195,7 @@ static ssize_t gxp_spi_write(struct gxp_spi_chip *chip, const struct spi_mem_op
 		return ret;
 	}
 
-	return write_len;
+	return 0;
 }
 
 static int do_gxp_exec_mem_op(struct spi_mem *mem, const struct spi_mem_op *op)



[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