]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: mtk_eth_soc: use iopoll.h macro for DMA init
authorIlya Lipnitskiy <ilya.lipnitskiy@gmail.com>
Fri, 23 Apr 2021 05:21:08 +0000 (22:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Apr 2021 20:31:58 +0000 (13:31 -0700)
commit1b803e0676186cfbe129fd8e1965fdf85a359d1e
tree35ee08136d077d6a8dad553652f3f2e1355f2131
parent431a78bac254f0d45a6c5c7e1d4653bca3961ca8
net: ethernet: mtk_eth_soc: use iopoll.h macro for DMA init

Replace a tight busy-wait loop without a pause with a standard
readx_poll_timeout_atomic routine with a 5 us poll period.

Tested by booting a MT7621 device to ensure the driver initializes
properly.

Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c
drivers/net/ethernet/mediatek/mtk_eth_soc.h