]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: mdio-bcm-unimac: factor busy polling loop
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 31 Jul 2017 19:04:22 +0000 (12:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Jul 2017 21:40:58 +0000 (14:40 -0700)
commite6230068fb44d163101e59ce6d36ce9f2806535f
tree37a14f835157257dece61b2c05fb70ecebd65275
parentbb495767f2522b2a0ce0dc82b9711a91a6b00fc4
net: phy: mdio-bcm-unimac: factor busy polling loop

Factor the code that does the busy polling on the MDIO_BUSY bit since we
will have different code-paths for for completion depending on whether
we are using interrupts or polling.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-bcm-unimac.c