mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 09:39:00 +00:00
26 lines
894 B
Diff
26 lines
894 B
Diff
|
From 4176c964cd42c43d90fc1b60ff8266613462ebe8 Mon Sep 17 00:00:00 2001
|
||
|
From: Maxime Ripard <maxime@cerno.tech>
|
||
|
Date: Thu, 13 Apr 2023 16:44:21 +0200
|
||
|
Subject: [PATCH] dmaengine: bcm2835: Use to_bcm2711_cbaddr where
|
||
|
relevant
|
||
|
|
||
|
bcm2711_dma40_memcpy has some code strictly equivalent to the
|
||
|
to_bcm2711_cbaddr() function. Let's use it instead.
|
||
|
|
||
|
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
|
||
|
---
|
||
|
drivers/dma/bcm2835-dma.c | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
--- a/drivers/dma/bcm2835-dma.c
|
||
|
+++ b/drivers/dma/bcm2835-dma.c
|
||
|
@@ -1149,7 +1149,7 @@ void bcm2711_dma40_memcpy(dma_addr_t dst
|
||
|
scb->len = size;
|
||
|
scb->next_cb = 0;
|
||
|
|
||
|
- writel((u32)(memcpy_scb_dma >> 5), memcpy_chan + BCM2711_DMA40_CB);
|
||
|
+ writel(to_bcm2711_cbaddr(memcpy_scb_dma), memcpy_chan + BCM2711_DMA40_CB);
|
||
|
writel(BCM2711_DMA40_MEMCPY_FLAGS + BCM2711_DMA40_ACTIVE,
|
||
|
memcpy_chan + BCM2711_DMA40_CS);
|
||
|
|