]> git.baikalelectronics.ru Git - kernel.git/commit
net: usb: asix: ax88772: do not poll for PHY before registering it
authorOleksij Rempel <o.rempel@pengutronix.de>
Thu, 22 Jul 2021 07:23:38 +0000 (09:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Jul 2021 07:50:47 +0000 (00:50 -0700)
commitf7f928c82867d2b3ce14d4048467c039aaf76040
tree70c78fafedb94368482859891c90d46886e89c52
parente5034c4e31985916e10444b0662862ccbe942b08
net: usb: asix: ax88772: do not poll for PHY before registering it

asix_get_phyid() is used for two reasons here. To print debug message
with the PHY ID and to wait until the PHY is powered up.

After migrating to the phylib, we can read PHYID from sysfs. If polling
for the PHY is really needed, then we will need to handle it in the
phylib as well.

This change was tested with:
- ax88772a + internal PHY
- ax88772b + external PHY

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/asix_devices.c