This is a note to let you know that I've just added the patch titled spi: cadence: set cqspi to the driver_data field of struct device to the 5.11-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-cadence-set-cqspi-to-the-driver_data-field-of-struct-device.patch and it can be found in the queue-5.11 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From ea94191e584b146878f0b7fd4b767500d7aae870 Mon Sep 17 00:00:00 2001 From: Meng Li <Meng.Li@xxxxxxxxxxxxx> Date: Thu, 11 Mar 2021 17:12:20 +0800 Subject: spi: cadence: set cqspi to the driver_data field of struct device From: Meng Li <Meng.Li@xxxxxxxxxxxxx> commit ea94191e584b146878f0b7fd4b767500d7aae870 upstream. When initialize cadence qspi controller, it is need to set cqspi to the driver_data field of struct device, because it will be used in function cqspi_remove/suspend/resume(). Otherwise, there will be a crash trace as below when invoking these finctions. Fixes: 31fb632b5d43 ("spi: Move cadence-quadspi driver to drivers/spi/") Cc: stable@xxxxxxxxxxxxxxx Signed-off-by: Meng Li <Meng.Li@xxxxxxxxxxxxx> Link: https://lore.kernel.org/r/20210311091220.3615-1-Meng.Li@xxxxxxxxxxxxx Signed-off-by: Mark Brown <broonie@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/spi/spi-cadence-quadspi.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/spi/spi-cadence-quadspi.c +++ b/drivers/spi/spi-cadence-quadspi.c @@ -1198,6 +1198,7 @@ static int cqspi_probe(struct platform_d cqspi = spi_master_get_devdata(master); cqspi->pdev = pdev; + platform_set_drvdata(pdev, cqspi); /* Obtain configuration from OF. */ ret = cqspi_of_get_pdata(cqspi); Patches currently in stable-queue which might be from Meng.Li@xxxxxxxxxxxxx are queue-5.11/spi-cadence-set-cqspi-to-the-driver_data-field-of-struct-device.patch