Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: lan966x: Extend lan966x with RGMII support

Extend lan966x with RGMII support. The MAC supports all RGMII_* modes.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Link: https://lore.kernel.org/r/20220902111548.614525-1-horatiu.vultur@microchip.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Horatiu Vultur and committed by
Paolo Abeni
d5edc797 96efd6d0

+4
+1
drivers/net/ethernet/microchip/lan966x/lan966x_main.c
··· 770 770 port->phylink_config.mac_capabilities = MAC_ASYM_PAUSE | MAC_SYM_PAUSE | 771 771 MAC_10 | MAC_100 | MAC_1000FD | MAC_2500FD; 772 772 773 + phy_interface_set_rgmii(port->phylink_config.supported_interfaces); 773 774 __set_bit(PHY_INTERFACE_MODE_MII, 774 775 port->phylink_config.supported_interfaces); 775 776 __set_bit(PHY_INTERFACE_MODE_GMII,
+3
drivers/net/ethernet/microchip/lan966x/lan966x_phylink.c
··· 60 60 port_config->pause |= tx_pause ? MLO_PAUSE_TX : 0; 61 61 port_config->pause |= rx_pause ? MLO_PAUSE_RX : 0; 62 62 63 + if (phy_interface_mode_is_rgmii(interface)) 64 + phy_set_speed(port->serdes, speed); 65 + 63 66 lan966x_port_config_up(port); 64 67 } 65 68