net: bcm4908: Handle dma_set_coherent_mask error codes
Subsystems (3)
PATCH v3 1/1 net: bcm4908: Handle dma_set_coherent_mask error codes
The return value of dma_set_coherent_mask() is not always 0. To catch the exception in case that dma is not support the mask.
---
Changelog
v2 -> v3
* Change 1. Modify the subject.
--- drivers/net/ethernet/broadcom/bcm4908_enet.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/ethernet/broadcom/bcm4908_enet.c +3 -1
@@ -708,7 +708,9 @@ static int bcm4908_enet_probe(struct platform_device *pdev) enet->irq_tx =platform_get_irq_byname (pdev,"tx" ); -dma_set_coherent_mask (dev,DMA_BIT_MASK (32 )); + err =dma_set_coherent_mask (dev,DMA_BIT_MASK (32 )); +if (err) +return err; err =bcm4908_enet_dma_alloc (enet);if (err)
Signature · 1 line
2.25.1
Quoted 5 lines · Jiasheng Jiang
The return value of
dma_set_coherent_mask()is not always 0. To catch the exception in case that dma is not support the mask.Fixes 9d61d138ab30 ("net: broadcom: rename BCM4908 driver & update DT binding")Signed-off-by Jiasheng Jiang <[email protected]>
Thanks for the quick turnaround.
Signature · 1 line
Florian
This patch was applied to netdev/net.git (master) by David S. Miller <[email protected]>:
Hello:
This patch was applied to netdev/net.git (master)
by David S. Miller <[email protected]>:
Quoted 9 lines · On Fri, 3 Dec 2021 11:31:06 +0800 you wrote:
The return value of
dma_set_coherent_mask()is not always 0. To catch the exception in case that dma is not support the mask.Fixes 9d61d138ab30 ("net: broadcom: rename BCM4908 driver & update DT binding")Signed-off-by Jiasheng Jiang <[email protected]>---
Changelog[...]
Here is the summary with links:
- [v3] net: bcm4908: Handle dma_set_coherent_mask error codes
https://git.kernel.org/netdev/net/c/128f6ec95a28
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html