]> git.baikalelectronics.ru Git - kernel.git/commit
net: bcm4908: Handle dma_set_coherent_mask error codes
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Fri, 3 Dec 2021 03:31:06 +0000 (11:31 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Dec 2021 14:18:53 +0000 (14:18 +0000)
commit562c599fecb8ef20933a73fb0aa8283ad6e7b0bd
tree8930fa9c39420a05737561f5daec7cda118327d3
parenta27dce766b34f156170b7af88db935330f48040c
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.

Fixes: 27758605defa ("net: broadcom: rename BCM4908 driver & update DT binding")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bcm4908_enet.c