Revert "pcie-brcmstb: Eliminate arch_dma_ops error message"

This reverts commit f8710daa77a98f99348f34fbd68fcb8fb8298ace.
This commit is contained in:
Phil Elwell
2020-03-11 17:17:26 +00:00
committed by popcornmix
parent 04cc412b82
commit b13d1662c9

View File

@@ -592,8 +592,9 @@ static int brcmstb_platform_notifier(struct notifier_block *nb,
switch (event) { switch (event) {
case BUS_NOTIFY_ADD_DEVICE: case BUS_NOTIFY_ADD_DEVICE:
if (strcmp(dev->kobj.name, rc_name)) { if (max_pfn > (bounce_threshold/PAGE_SIZE) &&
if (max_pfn > (bounce_threshold/PAGE_SIZE)) { strcmp(dev->kobj.name, rc_name)) {
ret = brcm_pcie_bounce_register_dev(dev); ret = brcm_pcie_bounce_register_dev(dev);
if (ret) { if (ret) {
dev_err(dev, dev_err(dev,
@@ -601,7 +602,6 @@ static int brcmstb_platform_notifier(struct notifier_block *nb,
ret); ret);
return ret; return ret;
} }
}
brcm_set_dma_ops(dev); brcm_set_dma_ops(dev);
} else if (IS_ENABLED(CONFIG_ARM64)) { } else if (IS_ENABLED(CONFIG_ARM64)) {
ret = of_dma_configure(dev, dev->of_node, true); ret = of_dma_configure(dev, dev->of_node, true);