diff options
author | Genevieve Chan <genevieve.chan@starfivetech.com> | 2023-05-24 10:13:52 +0300 |
---|---|---|
committer | Ley Foon Tan <leyfoon.tan@starfivetech.com> | 2023-12-04 06:00:15 +0300 |
commit | 1d22ded5cf762c049945b9c788ebfdd34c0bf47f (patch) | |
tree | 04b7e68005a355227e57f7e4e4fa4ef775e8566f /drivers/net/phy | |
parent | 653a1793394d2c60e45dc138bed30de2bbdd77aa (diff) | |
download | linux-1d22ded5cf762c049945b9c788ebfdd34c0bf47f.tar.xz |
net: phy: Fix genphy_config_advert to advertise PAUSE and 10M Full duplex mode
This patch ensure that only 10M Full Duplex and PAUSE are enabled
for StarFive Dubhe FPGA Platform
Signed-off-by: Genevieve Chan <genevieve.chan@starfivetech.com>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r-- | drivers/net/phy/phy_device.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c index 944f76e6fc8e..7f157b05b78b 100644 --- a/drivers/net/phy/phy_device.c +++ b/drivers/net/phy/phy_device.c @@ -1937,8 +1937,7 @@ static int genphy_config_advert(struct phy_device *phydev) /* Setup standard advertisement */ err = phy_modify_changed(phydev, MII_ADVERTISE, - ADVERTISE_ALL | ADVERTISE_100BASE4 | - ADVERTISE_PAUSE_CAP | ADVERTISE_PAUSE_ASYM, + ADVERTISE_10FULL | ADVERTISE_PAUSE_CAP, adv); if (err < 0) return err; |