net: phy: Add missing features to PHY drivers
The bcm87xx and micrel driver has PHYs which are missing the .features
value. Add them. The bcm87xx is a 10G FEC only PHY. Add the needed
features definition of this PHY.
Fixes: 719655a149
("net: phy: Replace phy driver features u32 with link_mode bitmap")
Reported-by: Scott Wood <oss@buserror.net>
Reported-by: Camelia Groza <camelia.groza@nxp.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
a5a82d8411
commit
9e857a40dc
@@ -61,6 +61,9 @@ EXPORT_SYMBOL_GPL(phy_gbit_all_ports_features);
|
||||
__ETHTOOL_DECLARE_LINK_MODE_MASK(phy_10gbit_features) __ro_after_init;
|
||||
EXPORT_SYMBOL_GPL(phy_10gbit_features);
|
||||
|
||||
__ETHTOOL_DECLARE_LINK_MODE_MASK(phy_10gbit_fec_features) __ro_after_init;
|
||||
EXPORT_SYMBOL_GPL(phy_10gbit_fec_features);
|
||||
|
||||
static const int phy_basic_ports_array[] = {
|
||||
ETHTOOL_LINK_MODE_Autoneg_BIT,
|
||||
ETHTOOL_LINK_MODE_TP_BIT,
|
||||
@@ -109,6 +112,11 @@ const int phy_10gbit_features_array[1] = {
|
||||
};
|
||||
EXPORT_SYMBOL_GPL(phy_10gbit_features_array);
|
||||
|
||||
const int phy_10gbit_fec_features_array[1] = {
|
||||
ETHTOOL_LINK_MODE_10000baseR_FEC_BIT,
|
||||
};
|
||||
EXPORT_SYMBOL_GPL(phy_10gbit_fec_features_array);
|
||||
|
||||
__ETHTOOL_DECLARE_LINK_MODE_MASK(phy_10gbit_full_features) __ro_after_init;
|
||||
EXPORT_SYMBOL_GPL(phy_10gbit_full_features);
|
||||
|
||||
@@ -191,6 +199,10 @@ static void features_init(void)
|
||||
linkmode_set_bit_array(phy_10gbit_full_features_array,
|
||||
ARRAY_SIZE(phy_10gbit_full_features_array),
|
||||
phy_10gbit_full_features);
|
||||
/* 10G FEC only */
|
||||
linkmode_set_bit_array(phy_10gbit_fec_features_array,
|
||||
ARRAY_SIZE(phy_10gbit_fec_features_array),
|
||||
phy_10gbit_fec_features);
|
||||
}
|
||||
|
||||
void phy_device_free(struct phy_device *phydev)
|
||||
|
Reference in New Issue
Block a user