Merge branch 'net-stmmac-Use-readl_poll_timeout-to-simplify-the-code'
authorDavid S. Miller <davem@davemloft.net>
Mon, 16 Mar 2020 09:10:10 +0000 (02:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Mar 2020 09:10:10 +0000 (02:10 -0700)
commit764e55824d0aef055437f7fd5683582a1613aedf
tree3773c49feeb776d3840b217b0ee315586d801d4f
parenta1dd3875fd65549bb8b8b2d2916dc9fec2727306
parent45d0da498ef3e534e46e76ab3a607b979b0e8e30
Merge branch 'net-stmmac-Use-readl_poll_timeout-to-simplify-the-code'

Dejin Zheng says:

====================
net: stmmac: Use readl_poll_timeout() to simplify the code

This patch sets just for replace the open-coded loop to the
readl_poll_timeout() helper macro for simplify the code in
stmmac driver.

v2 -> v3:
- return whatever error code by readl_poll_timeout() returned.
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.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>