提交 712d6768 编写于 作者: K Kunihiko Hayashi 提交者: Zheng Zengkai

dmaengine: uniphier-xdmac: Fix type of address variables

stable inclusion
from stable-v5.10.94
commit 57cd8597c3ef8ba8d00aa9f39f506f45d949d29b
bugzilla: https://gitee.com/openeuler/kernel/issues/I531X9

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=57cd8597c3ef8ba8d00aa9f39f506f45d949d29b

--------------------------------

commit 105a8c52 upstream.

The variables src_addr and dst_addr handle DMA addresses, so these should
be declared as dma_addr_t.

Fixes: 667b9251 ("dmaengine: uniphier-xdmac: Add UniPhier external DMA controller driver")
Signed-off-by: NKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Link: https://lore.kernel.org/r/1639456963-10232-1-git-send-email-hayashi.kunihiko@socionext.comSigned-off-by: NVinod Koul <vkoul@kernel.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
上级 66b18864
...@@ -131,8 +131,9 @@ uniphier_xdmac_next_desc(struct uniphier_xdmac_chan *xc) ...@@ -131,8 +131,9 @@ uniphier_xdmac_next_desc(struct uniphier_xdmac_chan *xc)
static void uniphier_xdmac_chan_start(struct uniphier_xdmac_chan *xc, static void uniphier_xdmac_chan_start(struct uniphier_xdmac_chan *xc,
struct uniphier_xdmac_desc *xd) struct uniphier_xdmac_desc *xd)
{ {
u32 src_mode, src_addr, src_width; u32 src_mode, src_width;
u32 dst_mode, dst_addr, dst_width; u32 dst_mode, dst_width;
dma_addr_t src_addr, dst_addr;
u32 val, its, tnum; u32 val, its, tnum;
enum dma_slave_buswidth buswidth; enum dma_slave_buswidth buswidth;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册