Commit d63b542c authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller

net: systemport: Set correct DMA mask

SYSTEMPORT is capabable of doing up to 40-bit of physical addresses, set
an appropriate DMA mask to permit that.
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5f04a6d8
...@@ -2427,6 +2427,14 @@ static int bcm_sysport_probe(struct platform_device *pdev) ...@@ -2427,6 +2427,14 @@ static int bcm_sysport_probe(struct platform_device *pdev)
if (!of_id || !of_id->data) if (!of_id || !of_id->data)
return -EINVAL; return -EINVAL;
ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(40));
if (ret)
ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
if (ret) {
dev_err(&pdev->dev, "unable to set DMA mask: %d\n", ret);
return ret;
}
/* Fairly quickly we need to know the type of adapter we have */ /* Fairly quickly we need to know the type of adapter we have */
params = of_id->data; params = of_id->data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment