Commit 69021e32 authored by Martin Blumenstingl's avatar Martin Blumenstingl Committed by David S. Miller

net: phy: realtek: rename RTL821x_INER_INIT to RTL8211B_INER_INIT

This macro is only used by the RTL8211B code. RTL8211E and RTL8211F both
use other bits to initialize the RTL821x_INER register.
No functional changes.
Signed-off-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8cc5baef
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#define RTL821x_PHYSR_DUPLEX BIT(13) #define RTL821x_PHYSR_DUPLEX BIT(13)
#define RTL821x_PHYSR_SPEED GENMASK(15, 14) #define RTL821x_PHYSR_SPEED GENMASK(15, 14)
#define RTL821x_INER 0x12 #define RTL821x_INER 0x12
#define RTL821x_INER_INIT 0x6400 #define RTL8211B_INER_INIT 0x6400
#define RTL821x_INSR 0x13 #define RTL821x_INSR 0x13
#define RTL821x_PAGE_SELECT 0x1f #define RTL821x_PAGE_SELECT 0x1f
#define RTL8211E_INER_LINK_STATUS BIT(10) #define RTL8211E_INER_LINK_STATUS BIT(10)
...@@ -92,7 +92,7 @@ static int rtl8211b_config_intr(struct phy_device *phydev) ...@@ -92,7 +92,7 @@ static int rtl8211b_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,
RTL821x_INER_INIT); RTL8211B_INER_INIT);
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