net: stmmac: use readl_poll_timeout() function in dwmac4_dma_reset()
authorDejin Zheng <zhengdejin5@gmail.com>
Mon, 16 Mar 2020 02:32:54 +0000 (10:32 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Mar 2020 09:10:09 +0000 (02:10 -0700)
commit45d0da498ef3e534e46e76ab3a607b979b0e8e30
tree3773c49feeb776d3840b217b0ee315586d801d4f
parentff8ed737860e9b5b898ab6d2ff05e2c6021c21b0
net: stmmac: use readl_poll_timeout() function in dwmac4_dma_reset()

The dwmac4_dma_reset() function use an open coded of readl_poll_timeout().
Replace the open coded handling with the proper function.

Signed-off-by: Dejin Zheng <zhengdejin5@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c