Re: [PATCH net-next v4 7/9] net: phy: introduce phy_read_poll_timeout macro

From: Andrew Lunn
Date: Sun Mar 22 2020 - 11:38:15 EST


On Sun, Mar 22, 2020 at 02:55:53PM +0800, Dejin Zheng wrote:
> it is sometimes necessary to poll a phy register by phy_read()
> function until its value satisfies some condition. introduce
> phy_read_poll_timeout() macros that do this.
>
> Suggested-by: Andrew Lunn <andrew@xxxxxxx>
> Signed-off-by: Dejin Zheng <zhengdejin5@xxxxxxxxx>

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew