mbox series

[net-next,0/2] Add Xilinx GMII2RGMII loopback support

Message ID 20210818122736.4877-1-gerhard@engleder-embedded.com (mailing list archive)
Headers show
Series Add Xilinx GMII2RGMII loopback support | expand

Message

Gerhard Engleder Aug. 18, 2021, 12:27 p.m. UTC
The Xilinx GMII2RGMII driver overrides PHY driver functions in order to
configure the device according to the link speed of the PHY attached to it.
This is implemented for a normal link but not for loopback.

Andrew told me to use phy_loopback and this changes make phy_loopback work
in combination with Xilinx GMII2RGMII.

Gerhard Engleder (2):
  net: phy: Support set_loopback override
  net: phy: gmii2rgmii: Support PHY loopback

 drivers/net/phy/phy_device.c        |  9 +++---
 drivers/net/phy/xilinx_gmii2rgmii.c | 46 ++++++++++++++++++++++-------
 2 files changed, 39 insertions(+), 16 deletions(-)