arm64: dts: imx8mm: Configure DMA on UART2
Subsystems (2)
PATCH 1/2 arm64: dts: imx8mm: Configure DMA on UART2
UART2 is often used as the console, so the DMA was likely left off on purpose, since it's recomended to not use the DMA on the console. Beacause, the driver checks to see if the UART is used for the console when determining if it should initialize DMA, it should be safe to enable DMA on UART2 for all users.
arch/arm64/boot/dts/freescale/imx8mm.dtsi +2 -0
@@ -915,6 +915,8 @@ uart2: serial@30890000 { clocks = <&clk IMX8MM_CLK_UART2_ROOT>, <&clk IMX8MM_CLK_UART2_ROOT>; clock-names = "ipg", "per"; + dmas = <&sdma1 24 4 0>, <&sdma1 25 4 0>; + dma-names = "rx", "tx"; status = "disabled"; }; };
Signature · 1 line
2.48.1
PATCH 2/2 arm64: dts: imx8mn: Configure DMA on UART2
UART2 is often used as the console, so the DMA was likely left off on purpose, since it's recomended to not use the DMA on the console. Beacause, the driver checks to see if the UART is used for the console when determining if it should initialize DMA, it should be safe to enable DMA on UART2 for all users.
arch/arm64/boot/dts/freescale/imx8mn.dtsi +2 -0
@@ -860,6 +860,8 @@ uart2: serial@30890000 { clocks = <&clk IMX8MN_CLK_UART2_ROOT>, <&clk IMX8MN_CLK_UART2_ROOT>; clock-names = "ipg", "per"; + dmas = <&sdma1 24 4 0>, <&sdma1 25 4 0>; + dma-names = "rx", "tx"; status = "disabled"; }; };
Signature · 1 line
2.48.1
Quoted 3 lines · Adam Ford
UART2 is often used as the console, so the DMA was likely left off on purpose, since it's recomended to not use the DMA on the
Typo: recommended
Quoted 1 line
console. Beacause, the driver checks to see if the UART is used for
Typo: Because
Quoted 2 lines
the console when determining if it should initialize DMA, it should be safe to enable DMA on UART2 for all users.
The same comment applies to the other patch.
Frank Li
maintainerQuoted 8 lines · Fabio Estevam
Quoted 3 lines · Adam Ford
UART2 is often used as the console, so the DMA was likely left off on purpose, since it's recomended to not use the DMA on the
Typo: recommended
Quoted 8 lines
Quoted 1 line
console. Beacause, the driver checks to see if the UART is used for
Typo: Because
Quoted 2 lines
the console when determining if it should initialize DMA, it should be safe to enable DMA on UART2 for all users.
The same comment applies to the other patch.
Please run below command to check spell error before post patches.
./scripts/checkpatch.pl --codespell --strict
Frank
Quoted 2 lines
Reviewed-by Fabio Estevam <[email protected]>