Skip to content

Commit 7f378c0

Browse files
Felix Riemannkuba-moo
authored andcommitted
net: phy: dp83822: disable MDI crossover status change interrupt
If the cable is disconnected the PHY seems to toggle between MDI and MDI-X modes. With the MDI crossover status interrupt active this causes roughly 10 interrupts per second. As the crossover status isn't checked by the driver, the interrupt can be disabled to reduce the interrupt load. Fixes: 87461f7 ("net: phy: DP83822 initial driver submission") Signed-off-by: Felix Riemann <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent ebda44d commit 7f378c0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/phy/dp83822.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,7 @@ static int dp83822_config_intr(struct phy_device *phydev)
254254
DP83822_EEE_ERROR_CHANGE_INT_EN);
255255

256256
if (!dp83822->fx_enabled)
257-
misr_status |= DP83822_MDI_XOVER_INT_EN |
258-
DP83822_ANEG_ERR_INT_EN |
257+
misr_status |= DP83822_ANEG_ERR_INT_EN |
259258
DP83822_WOL_PKT_INT_EN;
260259

261260
err = phy_write(phydev, MII_DP83822_MISR2, misr_status);

0 commit comments

Comments
 (0)