mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-19 07:16:20 +07:00
net: phy: dp83822: Update the fiber advertisement for speed
Update the fiber advertisement for speed and duplex modes with the 100base-FX full and half linkmode entries. Signed-off-by: Dan Murphy <dmurphy@ti.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a29de52ba2
commit
9ef7e18ba5
@ -110,9 +110,8 @@
|
|||||||
#define DP83822_RX_ER_SHIFT 8
|
#define DP83822_RX_ER_SHIFT 8
|
||||||
|
|
||||||
#define MII_DP83822_FIBER_ADVERTISE (ADVERTISED_TP | ADVERTISED_MII | \
|
#define MII_DP83822_FIBER_ADVERTISE (ADVERTISED_TP | ADVERTISED_MII | \
|
||||||
ADVERTISED_FIBRE | ADVERTISED_BNC | \
|
ADVERTISED_FIBRE | \
|
||||||
ADVERTISED_Pause | ADVERTISED_Asym_Pause | \
|
ADVERTISED_Pause | ADVERTISED_Asym_Pause)
|
||||||
ADVERTISED_100baseT_Full)
|
|
||||||
|
|
||||||
struct dp83822_private {
|
struct dp83822_private {
|
||||||
bool fx_signal_det_low;
|
bool fx_signal_det_low;
|
||||||
@ -406,6 +405,14 @@ static int dp83822_config_init(struct phy_device *phydev)
|
|||||||
phydev->supported);
|
phydev->supported);
|
||||||
linkmode_set_bit(ETHTOOL_LINK_MODE_FIBRE_BIT,
|
linkmode_set_bit(ETHTOOL_LINK_MODE_FIBRE_BIT,
|
||||||
phydev->advertising);
|
phydev->advertising);
|
||||||
|
linkmode_set_bit(ETHTOOL_LINK_MODE_100baseFX_Full_BIT,
|
||||||
|
phydev->supported);
|
||||||
|
linkmode_set_bit(ETHTOOL_LINK_MODE_100baseFX_Half_BIT,
|
||||||
|
phydev->supported);
|
||||||
|
linkmode_set_bit(ETHTOOL_LINK_MODE_100baseFX_Full_BIT,
|
||||||
|
phydev->advertising);
|
||||||
|
linkmode_set_bit(ETHTOOL_LINK_MODE_100baseFX_Half_BIT,
|
||||||
|
phydev->advertising);
|
||||||
|
|
||||||
/* Auto neg is not supported in fiber mode */
|
/* Auto neg is not supported in fiber mode */
|
||||||
bmcr = phy_read(phydev, MII_BMCR);
|
bmcr = phy_read(phydev, MII_BMCR);
|
||||||
|
Loading…
Reference in New Issue
Block a user