pcie-brcmstb: Don't set DMA ops for root complex
authorPhil Elwell <phil@raspberrypi.org>
Wed, 7 Aug 2019 16:19:33 +0000 (17:19 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:33:02 +0000 (16:33 +0100)
A change to arm_get_dma_map_ops has stopped get_dma_ops from working
on the root complex, causing an error to be logged. However, there is
no need to override the DMA ops in that case, so skip it and
eliminate the error message.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
drivers/pci/controller/pcie-brcmstb.c

index 746cfb4..87fd40a 100644 (file)
@@ -665,8 +665,8 @@ static int brcmstb_platform_notifier(struct notifier_block *nb,
                                        ret);
                                return ret;
                        }
+                       brcm_set_dma_ops(dev);
                }
-               brcm_set_dma_ops(dev);
                return NOTIFY_OK;
 
        case BUS_NOTIFY_DEL_DEVICE: