aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/Kconfig
diff options
context:
space:
mode:
authorAntoine Tenart <antoine.tenart@bootlin.com>2020-05-26 18:22:55 +0200
committerDavid S. Miller <davem@davemloft.net>2020-05-26 15:33:56 -0700
commitd9c6de35e051c17474ec8a1fe2fdb8cd2b6f1a87 (patch)
treea3e1468f56de6a4f78fdef5bb5a2fd10f809d982 /drivers/net/phy/Kconfig
parentnet: phy: mscc-miim: remove redundant timeout check (diff)
downloadlinux-dev-d9c6de35e051c17474ec8a1fe2fdb8cd2b6f1a87.tar.xz
linux-dev-d9c6de35e051c17474ec8a1fe2fdb8cd2b6f1a87.zip
net: phy: mscc-miim: improve waiting logic
The MSCC MIIM MDIO driver uses a waiting logic to wait for the MDIO bus to be ready to accept next commands. It does so by polling the BUSY status bit which indicates the MDIO bus has completed all pending operations. This can take time, and the controller supports writing the next command as soon as there are no pending commands (which happens while the MDIO bus is busy completing its current command). This patch implements this improved logic by adding an helper to poll the PENDING status bit, and by adjusting where we should wait for the bus to not be busy or to not be pending. Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com> Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/Kconfig')
0 files changed, 0 insertions, 0 deletions