commit | bd971ff0b73927b91f4520621d49d3a801ee4837 | [log] [tgz] |
---|---|---|
author | Dejin Zheng <zhengdejin5@gmail.com> | Mon Mar 23 23:05:53 2020 +0800 |
committer | David S. Miller <davem@davemloft.net> | Mon Mar 23 22:00:02 2020 -0700 |
tree | 87c54b5d994d482ea2ade2a9a9f2a4c5801f309e | |
parent | eaa6b01024a74ab5f3064f17dd88596284f497c4 [diff] |
net: phy: introduce phy_read_mmd_poll_timeout macro it is sometimes necessary to poll a phy register by phy_read_mmd() function until its value satisfies some condition. introduce phy_read_mmd_poll_timeout() macros that do this. Suggested-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Dejin Zheng <zhengdejin5@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>