mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-10 19:35:21 +02:00
dmaengine: ti: k3-udma: Fix BCHAN count with UHC and HC channels
[ Upstream commit372f8b3621
] Unlike other channel counts in CAPx registers, BCDMA BCHAN CNT doesn't include UHC and HC BC channels. So include them explicitly to arrive at total BC channel in the instance. Fixes:8844898028
("dmaengine: ti: k3-udma: Add support for BCDMA channel TPL handling") Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com> Signed-off-by: Jai Luthra <j-luthra@ti.com> Tested-by: Jayesh Choudhary <j-choudhary@ti.com> Link: https://lore.kernel.org/r/20240607-bcdma_chan_cnt-v2-1-bf1a55529d91@ti.com Signed-off-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
ff14eadc27
commit
0d820e1ca8
|
@ -4470,7 +4470,9 @@ static int udma_get_mmrs(struct platform_device *pdev, struct udma_dev *ud)
|
|||
ud->rchan_cnt = UDMA_CAP2_RCHAN_CNT(cap2);
|
||||
break;
|
||||
case DMA_TYPE_BCDMA:
|
||||
ud->bchan_cnt = BCDMA_CAP2_BCHAN_CNT(cap2);
|
||||
ud->bchan_cnt = BCDMA_CAP2_BCHAN_CNT(cap2) +
|
||||
BCDMA_CAP3_HBCHAN_CNT(cap3) +
|
||||
BCDMA_CAP3_UBCHAN_CNT(cap3);
|
||||
ud->tchan_cnt = BCDMA_CAP2_TCHAN_CNT(cap2);
|
||||
ud->rchan_cnt = BCDMA_CAP2_RCHAN_CNT(cap2);
|
||||
ud->rflow_cnt = ud->rchan_cnt;
|
||||
|
|
Loading…
Reference in New Issue
Block a user