OSDN Git Service

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)
commitfdc362bff9132e2e15e75d1ac830f91d2d9dee41
tree70c78fafedb94368482859891c90d46886e89c52
parent2b0a5688493ab0f54774a2f89d3d91ab238f7ab4
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