netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* net: asix: best way to handle orphan PHYs
@ 2022-03-09 12:18 Oleksij Rempel
  2022-03-09 13:31 ` Andrew Lunn
  0 siblings, 1 reply; 4+ messages in thread
From: Oleksij Rempel @ 2022-03-09 12:18 UTC (permalink / raw)
  To: David S. Miller, Jakub Kicinski, Andrew Lunn, Heiner Kallweit,
	Russell King
  Cc: kernel, linux-kernel, linux-usb, netdev, paskripkin

Hello all,

I have ASIX based USB Ethernet adapter with two PHYs: internal and
external. The internal PHY is enabled by default and there seems to be
no way to disable internal PHY on the MAC level without affecting the
external PHY.

What is the preferred method to suspend internal PHY?
Currently I have following options:
- suspend PHY in the probe function of the PHY driver
- get the phydev in the MAC driver and call phy_suspend()
- whisper magic numbers from the MAC driver directly this the MDIO bus.

Are there other options?

Regards,
Oleksij
-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-03-09 15:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-09 12:18 net: asix: best way to handle orphan PHYs Oleksij Rempel
2022-03-09 13:31 ` Andrew Lunn
2022-03-09 14:45   ` Oleksij Rempel
2022-03-09 15:57     ` Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).