]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.17-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Jul 2018 18:22:37 +0000 (20:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Jul 2018 18:22:37 +0000 (20:22 +0200)
added patches:
arm-dts-imx6q-use-correct-sdma-script-for-spi5-core.patch

queue-4.17/arm-dts-imx6q-use-correct-sdma-script-for-spi5-core.patch [new file with mode: 0644]
queue-4.17/series

diff --git a/queue-4.17/arm-dts-imx6q-use-correct-sdma-script-for-spi5-core.patch b/queue-4.17/arm-dts-imx6q-use-correct-sdma-script-for-spi5-core.patch
new file mode 100644 (file)
index 0000000..951096f
--- /dev/null
@@ -0,0 +1,41 @@
+From df07101e1c4a29e820df02f9989a066988b160e6 Mon Sep 17 00:00:00 2001
+From: Sean Nyekjaer <sean.nyekjaer@prevas.dk>
+Date: Tue, 22 May 2018 19:45:09 +0200
+Subject: ARM: dts: imx6q: Use correct SDMA script for SPI5 core
+
+From: Sean Nyekjaer <sean.nyekjaer@prevas.dk>
+
+commit df07101e1c4a29e820df02f9989a066988b160e6 upstream.
+
+According to the reference manual the shp_2_mcu / mcu_2_shp
+scripts must be used for devices connected through the SPBA.
+
+This fixes an issue we saw with DMA transfers.
+Sometimes the SPI controller RX FIFO was not empty after a DMA
+transfer and the driver got stuck in the next PIO transfer when
+it read one word more than expected.
+
+commit dd4b487b32a35 ("ARM: dts: imx6: Use correct SDMA script
+for SPI cores") is fixing the same issue but only for SPI1 - 4.
+
+Fixes: 677940258dd8e ("ARM: dts: imx6q: enable dma for ecspi5")
+Signed-off-by: Sean Nyekjaer <sean.nyekjaer@prevas.dk>
+Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
+Signed-off-by: Shawn Guo <shawnguo@kernel.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ arch/arm/boot/dts/imx6q.dtsi |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/arch/arm/boot/dts/imx6q.dtsi
++++ b/arch/arm/boot/dts/imx6q.dtsi
+@@ -96,7 +96,7 @@
+                                       clocks = <&clks IMX6Q_CLK_ECSPI5>,
+                                                <&clks IMX6Q_CLK_ECSPI5>;
+                                       clock-names = "ipg", "per";
+-                                      dmas = <&sdma 11 7 1>, <&sdma 12 7 2>;
++                                      dmas = <&sdma 11 8 1>, <&sdma 12 8 2>;
+                                       dma-names = "rx", "tx";
+                                       status = "disabled";
+                               };
index 502ecdf5e10b4bb88fb9632a400f78c90e8befc4..8f84ef9e3d117792eefed703d5b070269c38369f 100644 (file)
@@ -43,3 +43,4 @@ netfilter-xt_connmark-fix-list-corruption-on-rmmod.patch
 netfilter-nf_tables-use-warn_on_once-instead-of-bug_on-in-nft_do_chain.patch
 arm64-dts-meson-gxl-s905x-p212-add-phy-supply-for-usb0.patch
 x86-mm-don-t-free-p4d-table-when-it-is-folded-at-runtime.patch
+arm-dts-imx6q-use-correct-sdma-script-for-spi5-core.patch