bcm27xx: add linux 5.4 support
[openwrt/staging/jogo.git] / target / linux / bcm27xx / patches-5.4 / 950-0278-pcie-brcmstb-Don-t-set-DMA-ops-for-root-complex.patch
1 From 510a127017a0aada2734dbf57d25aaa0189198ff Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Wed, 7 Aug 2019 17:19:33 +0100
4 Subject: [PATCH] pcie-brcmstb: Don't set DMA ops for root complex
5
6 A change to arm_get_dma_map_ops has stopped get_dma_ops from working
7 on the root complex, causing an error to be logged. However, there is
8 no need to override the DMA ops in that case, so skip it and
9 eliminate the error message.
10
11 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
12 ---
13 drivers/pci/controller/pcie-brcmstb.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 --- a/drivers/pci/controller/pcie-brcmstb.c
17 +++ b/drivers/pci/controller/pcie-brcmstb.c
18 @@ -665,8 +665,8 @@ static int brcmstb_platform_notifier(str
19 ret);
20 return ret;
21 }
22 + brcm_set_dma_ops(dev);
23 }
24 - brcm_set_dma_ops(dev);
25 return NOTIFY_OK;
26
27 case BUS_NOTIFY_DEL_DEVICE: