Patch "spi: ath79: remove spi-master setup and cleanup assignment" has been added to the 5.4-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: ath79: remove spi-master setup and cleanup assignment

to the 5.4-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-ath79-remove-spi-master-setup-and-cleanup-assign.patch
and it can be found in the queue-5.4 subdirectory.

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



commit 35c4d593eebff43eb9eebb0a3fea7bdc4ee2802b
Author: David Bauer <mail@xxxxxxxxxxxxxxx>
Date:   Wed Mar 3 17:08:37 2021 +0100

    spi: ath79: remove spi-master setup and cleanup assignment
    
    [ Upstream commit ffb597b2bd3cd78b9bfb68f536743cd46dbb2cc4 ]
    
    This removes the assignment of setup and cleanup functions for the ath79
    target. Assigning the setup-method will lead to 'setup_transfer' not
    being assigned in spi_bitbang_init. Because of this, performing any
    TX/RX operation will lead to a kernel oops.
    
    Also drop the redundant cleanup assignment, as it's also assigned in
    spi_bitbang_init.
    
    Signed-off-by: David Bauer <mail@xxxxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20210303160837.165771-2-mail@xxxxxxxxxxxxxxx
    Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/spi/spi-ath79.c b/drivers/spi/spi-ath79.c
index 436327fb58de..98ace748cd98 100644
--- a/drivers/spi/spi-ath79.c
+++ b/drivers/spi/spi-ath79.c
@@ -156,8 +156,6 @@ static int ath79_spi_probe(struct platform_device *pdev)
 
 	master->use_gpio_descriptors = true;
 	master->bits_per_word_mask = SPI_BPW_RANGE_MASK(1, 32);
-	master->setup = spi_bitbang_setup;
-	master->cleanup = spi_bitbang_cleanup;
 	master->flags = SPI_MASTER_GPIO_SS;
 	if (pdata) {
 		master->bus_num = pdata->bus_num;



[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