dmaengine: ti: k3-udma: Fix pktdma rchan TPL level setup
Subsystems (2)
PATCH 1/1 dmaengine: ti: k3-udma: Fix pktdma rchan TPL level setup
Instead of initializing the rchan_tpl the initial commit re-initialized the tchan_tpl.
Fixes d2abc982333c0 ("dmaengine: ti: k3-udma: Initial support for K3 PKTDMA")
Signed-off-by Peter Ujfalusi <[email protected]>
--- drivers/dma/ti/k3-udma.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/dma/ti/k3-udma.c +3 -3
@@ -4774,9 +4774,9 @@ static int pktdma_setup_resources(struct udma_dev *ud) ud->tchan_tpl.levels =1 ; } - ud->tchan_tpl.levels = ud->tchan_tpl.levels; - ud->tchan_tpl.start_idx[0 ] = ud->tchan_tpl.start_idx[0 ]; - ud->tchan_tpl.start_idx[1 ] = ud->tchan_tpl.start_idx[1 ]; + ud->rchan_tpl.levels = ud->tchan_tpl.levels; + ud->rchan_tpl.start_idx[0 ] = ud->tchan_tpl.start_idx[0 ]; + ud->rchan_tpl.start_idx[1 ] = ud->tchan_tpl.start_idx[1 ]; ud->tchan_map =devm_kmalloc_array (dev,BITS_TO_LONGS (ud->tchan_cnt),sizeof (unsigned long ),GFP_KERNEL );
Signature · 4 lines
Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Quoted 2 lines · Peter Ujfalusi
Instead of initializing the
rchan_tplthe initial commit re-initialized thetchan_tpl.
Applied, thanks
Signature · 1 line
~Vinod