• Russell King (Oracle)'s avatar
    net: dsa: xrs700x: convert to phylink_generic_validate() · 1f8d99de
    Russell King (Oracle) authored
    Populate the supported interfaces and MAC capabilities for the xrs700x
    family of DSA switches and remove the old validate implementation to
    allow DSA to use phylink_generic_validate() for this switch driver.
    
    According to commit ee00b24f ("net: dsa: add Arrow SpeedChips
    XRS700x driver") the switch supports one RMII port and up to three
    RGMII ports. This commit assumes that port 0 is the RMII port and the
    remainder are RGMII.
    
    This commit also results in the Autoneg bit being set in the ethtool
    link modes, which wasn't in the original; if this switch supports
    RGMII to a 10/100/1G PHY, then surely we want to allow Autoneg on the
    PHY.
    Signed-off-by: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    1f8d99de
xrs700x.c 20.5 KB