dmaengine: ti: k3-psil-am62: Fix SPI PDMA data
Subsystems (2)
PATCH 1/1 dmaengine: ti: k3-psil-am62: Fix SPI PDMA data
AM62x has 3 SPI channels where each channel has 4 TX and 4 RX threads. This also fixes the thread numbers.
--- drivers/dma/ti/k3-psil-am62.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/dma/ti/k3-psil-am62.c +6 -6
@@ -74,7 +74,9 @@ static struct psil_ep am62_src_ep_map[] = {PSIL_SAUL (0x7505 ,21 ,35 ,8 ,36 ,0 ),PSIL_SAUL (0x7506 ,22 ,43 ,8 ,43 ,0 ),PSIL_SAUL (0x7507 ,23 ,43 ,8 ,44 ,0 ), -/* PDMA_MAIN0 - SPI0-3 */ +/* PDMA_MAIN0 - SPI0-2 */ +PSIL_PDMA_XY_PKT (0x4300 ), +PSIL_PDMA_XY_PKT (0x4301 ),PSIL_PDMA_XY_PKT (0x4302 ),PSIL_PDMA_XY_PKT (0x4303 ), PSIL_PDMA_XY_PKT(0x4304),
@@ -85,8 +87,6 @@ static struct psil_ep am62_src_ep_map[] = {PSIL_PDMA_XY_PKT (0x4309 ),PSIL_PDMA_XY_PKT (0x430a ),PSIL_PDMA_XY_PKT (0x430b ), -PSIL_PDMA_XY_PKT (0x430c ), -PSIL_PDMA_XY_PKT (0x430d ),/* PDMA_MAIN1 - UART0-6 */ PSIL_PDMA_XY_PKT (0x4400 ), PSIL_PDMA_XY_PKT(0x4401),
@@ -141,7 +141,9 @@ static struct psil_ep am62_dst_ep_map[] = {/* SAUL */ PSIL_SAUL (0xf500 ,27 ,83 ,8 ,83 ,1 ),PSIL_SAUL (0xf501 ,28 ,91 ,8 ,91 ,1 ), -/* PDMA_MAIN0 - SPI0-3 */ +/* PDMA_MAIN0 - SPI0-2 */ +PSIL_PDMA_XY_PKT (0xc300 ), +PSIL_PDMA_XY_PKT (0xc301 ),PSIL_PDMA_XY_PKT (0xc302 ),PSIL_PDMA_XY_PKT (0xc303 ), PSIL_PDMA_XY_PKT(0xc304),
@@ -152,8 +154,6 @@ static struct psil_ep am62_dst_ep_map[] = {PSIL_PDMA_XY_PKT (0xc309 ),PSIL_PDMA_XY_PKT (0xc30a ),PSIL_PDMA_XY_PKT (0xc30b ), -PSIL_PDMA_XY_PKT (0xc30c ), -PSIL_PDMA_XY_PKT (0xc30d ),/* PDMA_MAIN1 - UART0-6 */ PSIL_PDMA_XY_PKT (0xc400 ), PSIL_PDMA_XY_PKT(0xc401),
--
2.41.0
Quoted 2 lines · Ronald Wahl
AM62x has 3 SPI channels where each channel has 4 TX and 4 RX threads. This also fixes the thread numbers.
Quoted 52 lines
Signed-off-by Ronald Wahl <[email protected]>--- drivers/dma/ti/k3-psil-am62.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)drivers/dma/ti/k3-psil-am62.c +6
-7@@ -74,7 +74,9 @@ static struct psil_ep am62_src_ep_map[] = {PSIL_SAUL (0x7505 ,21 ,35 ,8 ,36 ,0 ),PSIL_SAUL (0x7506 ,22 ,43 ,8 ,43 ,0 ),PSIL_SAUL (0x7507 ,23 ,43 ,8 ,44 ,0 ), -/* PDMA_MAIN0 - SPI0-3 */ +/* PDMA_MAIN0 - SPI0-2 */ +PSIL_PDMA_XY_PKT (0x4300 ), +PSIL_PDMA_XY_PKT (0x4301 ),PSIL_PDMA_XY_PKT (0x4302 ),PSIL_PDMA_XY_PKT (0x4303 ), PSIL_PDMA_XY_PKT(0x4304),@@ -85,8 +87,6 @@ static struct psil_ep am62_src_ep_map[] = {PSIL_PDMA_XY_PKT (0x4309 ),PSIL_PDMA_XY_PKT (0x430a ),PSIL_PDMA_XY_PKT (0x430b ), -PSIL_PDMA_XY_PKT (0x430c ), -PSIL_PDMA_XY_PKT (0x430d ),/* PDMA_MAIN1 - UART0-6 */ PSIL_PDMA_XY_PKT (0x4400 ), PSIL_PDMA_XY_PKT(0x4401),@@ -141,7 +141,9 @@ static struct psil_ep am62_dst_ep_map[] = {/* SAUL */ PSIL_SAUL (0xf500 ,27 ,83 ,8 ,83 ,1 ),PSIL_SAUL (0xf501 ,28 ,91 ,8 ,91 ,1 ), -/* PDMA_MAIN0 - SPI0-3 */ +/* PDMA_MAIN0 - SPI0-2 */ +PSIL_PDMA_XY_PKT (0xc300 ), +PSIL_PDMA_XY_PKT (0xc301 ),PSIL_PDMA_XY_PKT (0xc302 ),PSIL_PDMA_XY_PKT (0xc303 ), PSIL_PDMA_XY_PKT(0xc304),@@ -152,8 +154,6 @@ static struct psil_ep am62_dst_ep_map[] = {PSIL_PDMA_XY_PKT (0xc309 ),PSIL_PDMA_XY_PKT (0xc30a ),PSIL_PDMA_XY_PKT (0xc30b ), -PSIL_PDMA_XY_PKT (0xc30c ), -PSIL_PDMA_XY_PKT (0xc30d ),/* PDMA_MAIN1 - UART0-6 */ PSIL_PDMA_XY_PKT (0xc400 ), PSIL_PDMA_XY_PKT(0xc401), --2.41.0
Signature · 1 line
Péter
Hi Ronald,
Thanks for the patch.
Quoted 3 lines · Ronald Wahl
AM62x has 3 SPI channels where each channel has 4 TX and 4 RX threads. This also fixes the thread numbers.
Please add the Fixes tag so this gets backported to stable
With that change,
Quoted 53 lines
Signed-off-by Ronald Wahl <[email protected]>--- drivers/dma/ti/k3-psil-am62.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)drivers/dma/ti/k3-psil-am62.c +6
-7@@ -74,7 +74,9 @@ static struct psil_ep am62_src_ep_map[] = {PSIL_SAUL (0x7505 ,21 ,35 ,8 ,36 ,0 ),PSIL_SAUL (0x7506 ,22 ,43 ,8 ,43 ,0 ),PSIL_SAUL (0x7507 ,23 ,43 ,8 ,44 ,0 ), -/* PDMA_MAIN0 - SPI0-3 */ +/* PDMA_MAIN0 - SPI0-2 */ +PSIL_PDMA_XY_PKT (0x4300 ), +PSIL_PDMA_XY_PKT (0x4301 ),PSIL_PDMA_XY_PKT (0x4302 ),PSIL_PDMA_XY_PKT (0x4303 ), PSIL_PDMA_XY_PKT(0x4304),@@ -85,8 +87,6 @@ static struct psil_ep am62_src_ep_map[] = {PSIL_PDMA_XY_PKT (0x4309 ),PSIL_PDMA_XY_PKT (0x430a ),PSIL_PDMA_XY_PKT (0x430b ), -PSIL_PDMA_XY_PKT (0x430c ), -PSIL_PDMA_XY_PKT (0x430d ),/* PDMA_MAIN1 - UART0-6 */ PSIL_PDMA_XY_PKT (0x4400 ), PSIL_PDMA_XY_PKT(0x4401),@@ -141,7 +141,9 @@ static struct psil_ep am62_dst_ep_map[] = {/* SAUL */ PSIL_SAUL (0xf500 ,27 ,83 ,8 ,83 ,1 ),PSIL_SAUL (0xf501 ,28 ,91 ,8 ,91 ,1 ), -/* PDMA_MAIN0 - SPI0-3 */ +/* PDMA_MAIN0 - SPI0-2 */ +PSIL_PDMA_XY_PKT (0xc300 ), +PSIL_PDMA_XY_PKT (0xc301 ),PSIL_PDMA_XY_PKT (0xc302 ),PSIL_PDMA_XY_PKT (0xc303 ), PSIL_PDMA_XY_PKT(0xc304),@@ -152,8 +154,6 @@ static struct psil_ep am62_dst_ep_map[] = {PSIL_PDMA_XY_PKT (0xc309 ),PSIL_PDMA_XY_PKT (0xc30a ),PSIL_PDMA_XY_PKT (0xc30b ), -PSIL_PDMA_XY_PKT (0xc30c ), -PSIL_PDMA_XY_PKT (0xc30d ),/* PDMA_MAIN1 - UART0-6 */ PSIL_PDMA_XY_PKT (0xc400 ), PSIL_PDMA_XY_PKT(0xc401), --2.41.0
Signature · 4 lines
Thanks, Jai GPG Fingerprint: 4DE0 D818 E5D5 75E8 D45A AFC5 43DE 91F9 249A 7145
Vinod Koul
maintainerQuoted 11 lines · Jai Luthra
Hi Ronald,
Thanks for the patch.
Quoted 3 lines · Ronald Wahl
AM62x has 3 SPI channels where each channel has 4 TX and 4 RX threads. This also fixes the thread numbers.
Please add the Fixes tag so this gets backported to stable
Fixes 5ac6bfb58777 ("dmaengine: ti: k3-psil: Add AM62x PSIL and PDMA data")
No need to add and post v2, b4 picks the Fixes tag and applies
Signature · 1 line
~Vinod
Quoted 4 lines · Ronald Wahl
AM62x has 3 SPI channels where each channel has 4 TX and 4 RX threads. This also fixes the thread numbers.
Applied, thanks!
[1/1] dmaengine: ti: k3-psil-am62: Fix SPI PDMA data
commit: 744f5e7b69710701dc225020769138f8ca2894df
Best regards,
Signature · 1 line
~Vinod