]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - pending-4.9/arm-dts-imx6sx-specify-imx6sx_clk_ipg-as-ipg-clock-t.patch
move existing queues out of the way for the moment...
[thirdparty/kernel/stable-queue.git] / pending-4.9 / arm-dts-imx6sx-specify-imx6sx_clk_ipg-as-ipg-clock-t.patch
CommitLineData
bb104d9e
SL
1From 2deb80fad87718e72d17b60a747dd27f69d75fcc Mon Sep 17 00:00:00 2001
2From: Andrey Smirnov <andrew.smirnov@gmail.com>
3Date: Thu, 28 Mar 2019 23:49:17 -0700
4Subject: ARM: dts: imx6sx: Specify IMX6SX_CLK_IPG as "ipg" clock to SDMA
5
6[ Upstream commit 8979117765c19edc3b01cc0ef853537bf93eea4b ]
7
8Since 25aaa75df1e6 SDMA driver uses clock rates of "ipg" and "ahb"
9clock to determine if it needs to configure the IP block as operating
10at 1:1 or 1:2 clock ratio (ACR bit in SDMAARM_CONFIG). Specifying both
11clocks as IMX6SX_CLK_SDMA results in driver incorrectly thinking that
12ratio is 1:1 which results in broken SDMA funtionality. Fix the code
13to specify IMX6SX_CLK_IPG as "ipg" clock for SDMA, to avoid detecting
14incorrect clock ratio.
15
16Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
17Cc: Angus Ainslie (Purism) <angus@akkea.ca>
18Cc: Chris Healy <cphealy@gmail.com>
19Cc: Lucas Stach <l.stach@pengutronix.de>
20Cc: Fabio Estevam <fabio.estevam@nxp.com>
21Cc: Shawn Guo <shawnguo@kernel.org>
22Cc: linux-arm-kernel@lists.infradead.org
23Cc: linux-kernel@vger.kernel.org
24Signed-off-by: Shawn Guo <shawnguo@kernel.org>
25Signed-off-by: Sasha Levin <sashal@kernel.org>
26---
27 arch/arm/boot/dts/imx6sx.dtsi | 2 +-
28 1 file changed, 1 insertion(+), 1 deletion(-)
29
30diff --git a/arch/arm/boot/dts/imx6sx.dtsi b/arch/arm/boot/dts/imx6sx.dtsi
31index a885052157f0..5834194b62e1 100644
32--- a/arch/arm/boot/dts/imx6sx.dtsi
33+++ b/arch/arm/boot/dts/imx6sx.dtsi
34@@ -751,7 +751,7 @@
35 compatible = "fsl,imx6sx-sdma", "fsl,imx6q-sdma";
36 reg = <0x020ec000 0x4000>;
37 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
38- clocks = <&clks IMX6SX_CLK_SDMA>,
39+ clocks = <&clks IMX6SX_CLK_IPG>,
40 <&clks IMX6SX_CLK_SDMA>;
41 clock-names = "ipg", "ahb";
42 #dma-cells = <3>;
43--
442.20.1
45