bcm27xx: add kernel 5.10 support
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.10 / 950-0429-bcm2835-dma-Move-WAIT_RESP-from-extra-to-info.patch
1 From 319fb2652bdfc0176ec8c69ce612c0f0dcc4a0ed Mon Sep 17 00:00:00 2001
2 From: popcornmix <popcornmix@gmail.com>
3 Date: Mon, 11 Jan 2021 14:49:33 +0000
4 Subject: [PATCH] bcm2835-dma: Move WAIT_RESP from extra to info
5
6 Questionable: Might want to drop
7 Signed-off-by: popcornmix <popcornmix@gmail.com>
8 ---
9 drivers/dma/bcm2835-dma.c | 4 ++--
10 1 file changed, 2 insertions(+), 2 deletions(-)
11
12 --- a/drivers/dma/bcm2835-dma.c
13 +++ b/drivers/dma/bcm2835-dma.c
14 @@ -861,9 +861,9 @@ static struct dma_async_tx_descriptor *b
15 {
16 struct bcm2835_chan *c = to_bcm2835_dma_chan(chan);
17 struct bcm2835_desc *d;
18 - u32 info = BCM2835_DMA_D_INC | BCM2835_DMA_S_INC |
19 + u32 info = BCM2835_DMA_D_INC | BCM2835_DMA_S_INC | WAIT_RESP(c->dreq) |
20 WIDE_SOURCE(c->dreq) | WIDE_DEST(c->dreq);
21 - u32 extra = BCM2835_DMA_INT_EN | WAIT_RESP(c->dreq);
22 + u32 extra = BCM2835_DMA_INT_EN;
23 size_t max_len = bcm2835_dma_max_frame_length(c);
24 size_t frames;
25