mbox series

[net-next,v2,0/2] net: stmmac: Use readl_poll_timeout() to simplify the code

Message ID 20200315150301.32129-1-zhengdejin5@gmail.com
Headers show
Series net: stmmac: Use readl_poll_timeout() to simplify the code | expand

Message

Dejin Zheng March 15, 2020, 3:02 p.m. UTC
This patch sets just for replace the open-coded loop to the
readl_poll_timeout() helper macro for simplify the code in
stmmac driver.

v1 -> v2:
	- no changed. I am a newbie and sent this patch a month
	  ago (February 6th). So far, I have not received any comments or
	  suggestion. I think it may be lost somewhere in the world, so
	  resend it.

Dejin Zheng (2):
  net: stmmac: use readl_poll_timeout() function in init_systime()
  net: stmmac: use readl_poll_timeout() function in dwmac4_dma_reset()

 drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c   | 14 ++++++--------
 .../net/ethernet/stmicro/stmmac/stmmac_hwtstamp.c  | 14 ++++++--------
 2 files changed, 12 insertions(+), 16 deletions(-)