net: phy: mdio-mux-bcm-iproc: use readl_poll_timeout() to simplify code
authorDejin Zheng <zhengdejin5@gmail.com>
Tue, 24 Mar 2020 11:26:47 +0000 (19:26 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Mar 2020 23:20:29 +0000 (16:20 -0700)
commitc9c1fd62b0ed32127d6af8409ae3ad0e9be70590
treeb28c753da4b27b67978eefab99648b0928635dbf
parent5ef8c665416b9815113042e0edebe8ff66a45e2e
net: phy: mdio-mux-bcm-iproc: use readl_poll_timeout() to simplify code

use readl_poll_timeout() to replace the poll codes for simplify
iproc_mdio_wait_for_idle() function

Signed-off-by: Dejin Zheng <zhengdejin5@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-mux-bcm-iproc.c