priv->pause, tx_cnt);
}
-static void stmmac_validate(struct phylink_config *config,
- unsigned long *supported,
- struct phylink_link_state *state)
-{
- __ETHTOOL_DECLARE_LINK_MODE_MASK(mac_supported) = { 0, };
-
- /* This is very similar to phylink_generic_validate() except that
- * we always use PHY_INTERFACE_MODE_INTERNAL to get all capabilities.
- * This is because we don't always have config->supported_interfaces
- * populated (only when we have the XPCS.)
- *
- * When we do have an XPCS, we could pass state->interface, as XPCS
- * limits to a subset of the ethtool link modes allowed here.
- */
- phylink_set(mac_supported, Autoneg);
- phylink_set_port_modes(mac_supported);
- phylink_get_linkmodes(mac_supported, PHY_INTERFACE_MODE_INTERNAL,
- config->mac_capabilities);
-
- linkmode_and(supported, supported, mac_supported);
- linkmode_and(state->advertising, state->advertising, mac_supported);
-}
-
static void stmmac_mac_config(struct phylink_config *config, unsigned int mode,
const struct phylink_link_state *state)
{
}
static const struct phylink_mac_ops stmmac_phylink_mac_ops = {
- .validate = stmmac_validate,
+ .validate = phylink_generic_validate,
.mac_config = stmmac_mac_config,
.mac_link_down = stmmac_mac_link_down,
.mac_link_up = stmmac_mac_link_up,