]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
6.6-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Oct 2024 07:14:17 +0000 (09:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Oct 2024 07:14:17 +0000 (09:14 +0200)
added patches:
spi-atmel-quadspi-fix-wrong-register-value-written-to-mr.patch

queue-6.6/series
queue-6.6/spi-atmel-quadspi-fix-wrong-register-value-written-to-mr.patch [new file with mode: 0644]

index 78106c29b14b1a98a06378d4e54dbecc963f2698..07d37f77611da87daf6059a85b00b5a21637c183 100644 (file)
@@ -530,3 +530,4 @@ thunderbolt-send-uevent-after-asymmetric-symmetric-switch.patch
 thunderbolt-fix-minimum-allocated-usb-3.x-and-pcie-bandwidth.patch
 thunderbolt-fix-null-pointer-dereference-in-tb_port_update_credits.patch
 x86-tdx-fix-in-kernel-mmio-check.patch
+spi-atmel-quadspi-fix-wrong-register-value-written-to-mr.patch
diff --git a/queue-6.6/spi-atmel-quadspi-fix-wrong-register-value-written-to-mr.patch b/queue-6.6/spi-atmel-quadspi-fix-wrong-register-value-written-to-mr.patch
new file mode 100644 (file)
index 0000000..3826695
--- /dev/null
@@ -0,0 +1,32 @@
+From 162d9b5d2308c7e48efbc97d36babbf4d73b2c61 Mon Sep 17 00:00:00 2001
+From: Alexander Dahl <ada@thorsis.com>
+Date: Thu, 26 Sep 2024 11:03:56 +0200
+Subject: spi: atmel-quadspi: Fix wrong register value written to MR
+
+From: Alexander Dahl <ada@thorsis.com>
+
+commit 162d9b5d2308c7e48efbc97d36babbf4d73b2c61 upstream.
+
+aq->mr should go to MR, nothing else.
+
+Fixes: 329ca3eed4a9 ("spi: atmel-quadspi: Avoid overwriting delay register settings")
+Signed-off-by: Alexander Dahl <ada@thorsis.com>
+Link: https://lore.kernel.org/linux-spi/20240926-macarena-wincing-7c4995487a29@thorsis.com/T/#u
+Link: https://patch.msgid.link/20240926090356.105789-1-ada@thorsis.com
+Signed-off-by: Mark Brown <broonie@kernel.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/spi/atmel-quadspi.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/spi/atmel-quadspi.c
++++ b/drivers/spi/atmel-quadspi.c
+@@ -377,7 +377,7 @@ static int atmel_qspi_set_cfg(struct atm
+        */
+       if (!(aq->mr & QSPI_MR_SMM)) {
+               aq->mr |= QSPI_MR_SMM;
+-              atmel_qspi_write(aq->scr, aq, QSPI_MR);
++              atmel_qspi_write(aq->mr, aq, QSPI_MR);
+       }
+       /* Clear pending interrupts */