]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
dmaengine: ti: k3-udma: Set rflow count for BCDMA split channels
authorVignesh Raghavendra <vigneshr@ti.com>
Tue, 12 Jan 2021 14:14:03 +0000 (19:44 +0530)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 15 Mar 2021 14:09:16 +0000 (15:09 +0100)
commit4c04b44a7e250d1932e9f32cdc5d0ecef8443efb
tree10f537c5c2719954df8a12958e02fb13ed710cb5
parent9b4b1e9b1c8fe5802134786ea0c62b165ed2b11b
dmaengine: ti: k3-udma: Set rflow count for BCDMA split channels

[ Upstream commit aecf9d38361090857aa58708e500ee79bed1e273 ]

BCDMA RX channels have one flow per channel, therefore set the rflow_cnt
to rchan_cnt.

Without this patch, request for BCDMA RX channel allocation fails as
rflow_cnt is 0 thus fails to reserve a rflow for the channel.

Fixes: 8844898028d4 ("dmaengine: ti: k3-udma: Add support for BCDMA channel TPL handling")
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
Link: https://lore.kernel.org/r/20210112141403.30286-1-vigneshr@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
drivers/dma/ti/k3-udma.c