|
|
@@ -13,7 +13,15 @@ Signed-off-by: Daniel Golle <[email protected]>
|
|
|
|
|
|
--- a/drivers/net/phy/realtek.c
|
|
|
+++ b/drivers/net/phy/realtek.c
|
|
|
-@@ -754,6 +754,38 @@ static int rtl8226_match_phy_device(stru
|
|
|
+@@ -80,6 +80,7 @@
|
|
|
+
|
|
|
+ #define RTL_GENERIC_PHYID 0x001cc800
|
|
|
+ #define RTL_8211FVD_PHYID 0x001cc878
|
|
|
++#define RTL_8221B_VB_CG_PHYID 0x001cc849
|
|
|
+
|
|
|
+ MODULE_DESCRIPTION("Realtek PHY driver");
|
|
|
+ MODULE_AUTHOR("Johnson Leung");
|
|
|
+@@ -754,6 +755,38 @@ static int rtl8226_match_phy_device(stru
|
|
|
rtlgen_supports_2_5gbps(phydev);
|
|
|
}
|
|
|
|
|
|
@@ -46,13 +54,13 @@ Signed-off-by: Daniel Golle <[email protected]>
|
|
|
+ id |= val;
|
|
|
+ }
|
|
|
+
|
|
|
-+ return (id == 0x001cc849);
|
|
|
++ return (id == RTL_8221B_VB_CG_PHYID);
|
|
|
+}
|
|
|
+
|
|
|
static int rtl822x_probe(struct phy_device *phydev)
|
|
|
{
|
|
|
struct device *dev = &phydev->mdio.dev;
|
|
|
-@@ -1104,7 +1136,7 @@ static struct phy_driver realtek_drvs[]
|
|
|
+@@ -1104,7 +1137,7 @@ static struct phy_driver realtek_drvs[]
|
|
|
.write_page = rtl821x_write_page,
|
|
|
.soft_reset = genphy_soft_reset,
|
|
|
}, {
|