Commit 8b64fd61 authored by Giuseppe CAVALLARO's avatar Giuseppe CAVALLARO Committed by David S. Miller

net: phy: rtl8211: fix interrupt on status link change

This is to fix a problem in the rtl8211 where the driver
wasn't properly enabled the interrupt on link change status.
it has to enable the ineterrupt on the bit 10 in the register 18
(INER).
Reported-by: default avatarSharma Bhupesh <B45370@freescale.com>
Signed-off-by: default avatarGiuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cc666c53
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#define RTL821x_INER_INIT 0x6400 #define RTL821x_INER_INIT 0x6400
#define RTL821x_INSR 0x13 #define RTL821x_INSR 0x13
#define RTL8211E_INER_LINK_STAT 0x10 #define RTL8211E_INER_LINK_STATUS 0x400
MODULE_DESCRIPTION("Realtek PHY driver"); MODULE_DESCRIPTION("Realtek PHY driver");
MODULE_AUTHOR("Johnson Leung"); MODULE_AUTHOR("Johnson Leung");
...@@ -57,7 +57,7 @@ static int rtl8211e_config_intr(struct phy_device *phydev) ...@@ -57,7 +57,7 @@ static int rtl8211e_config_intr(struct phy_device *phydev)
if (phydev->interrupts == PHY_INTERRUPT_ENABLED) if (phydev->interrupts == PHY_INTERRUPT_ENABLED)
err = phy_write(phydev, RTL821x_INER, err = phy_write(phydev, RTL821x_INER,
RTL8211E_INER_LINK_STAT); RTL8211E_INER_LINK_STATUS);
else else
err = phy_write(phydev, RTL821x_INER, 0); err = phy_write(phydev, RTL821x_INER, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment