@@ -867,21 +867,6 @@ static int m88e1011_set_tunable(struct phy_device *phydev,
867867 }
868868}
869869
870- static void m88e1011_link_change_notify (struct phy_device * phydev )
871- {
872- int status ;
873-
874- if (phydev -> state != PHY_RUNNING )
875- return ;
876-
877- /* we may be on fiber page currently */
878- status = phy_read_paged (phydev , MII_MARVELL_COPPER_PAGE ,
879- MII_M1011_PHY_SSR );
880-
881- if (status > 0 && status & MII_M1011_PHY_SSR_DOWNSHIFT )
882- phydev_warn (phydev , "Downshift occurred! Cabling may be defective.\n" );
883- }
884-
885870static int m88e1116r_config_init (struct phy_device * phydev )
886871{
887872 int err ;
@@ -2201,7 +2186,6 @@ static struct phy_driver marvell_drivers[] = {
22012186 .get_stats = marvell_get_stats ,
22022187 .get_tunable = m88e1011_get_tunable ,
22032188 .set_tunable = m88e1011_set_tunable ,
2204- .link_change_notify = m88e1011_link_change_notify ,
22052189 },
22062190 {
22072191 .phy_id = MARVELL_PHY_ID_88E1111 ,
@@ -2223,7 +2207,6 @@ static struct phy_driver marvell_drivers[] = {
22232207 .get_stats = marvell_get_stats ,
22242208 .get_tunable = m88e1111_get_tunable ,
22252209 .set_tunable = m88e1111_set_tunable ,
2226- .link_change_notify = m88e1011_link_change_notify ,
22272210 },
22282211 {
22292212 .phy_id = MARVELL_PHY_ID_88E1118 ,
@@ -2264,7 +2247,6 @@ static struct phy_driver marvell_drivers[] = {
22642247 .get_stats = marvell_get_stats ,
22652248 .get_tunable = m88e1011_get_tunable ,
22662249 .set_tunable = m88e1011_set_tunable ,
2267- .link_change_notify = m88e1011_link_change_notify ,
22682250 },
22692251 {
22702252 .phy_id = MARVELL_PHY_ID_88E1318S ,
@@ -2308,7 +2290,6 @@ static struct phy_driver marvell_drivers[] = {
23082290 .get_stats = marvell_get_stats ,
23092291 .get_tunable = m88e1111_get_tunable ,
23102292 .set_tunable = m88e1111_set_tunable ,
2311- .link_change_notify = m88e1011_link_change_notify ,
23122293 },
23132294 {
23142295 .phy_id = MARVELL_PHY_ID_88E1149R ,
@@ -2364,7 +2345,6 @@ static struct phy_driver marvell_drivers[] = {
23642345 .get_stats = marvell_get_stats ,
23652346 .get_tunable = m88e1011_get_tunable ,
23662347 .set_tunable = m88e1011_set_tunable ,
2367- .link_change_notify = m88e1011_link_change_notify ,
23682348 },
23692349 {
23702350 .phy_id = MARVELL_PHY_ID_88E1510 ,
@@ -2390,7 +2370,6 @@ static struct phy_driver marvell_drivers[] = {
23902370 .set_loopback = genphy_loopback ,
23912371 .get_tunable = m88e1011_get_tunable ,
23922372 .set_tunable = m88e1011_set_tunable ,
2393- .link_change_notify = m88e1011_link_change_notify ,
23942373 },
23952374 {
23962375 .phy_id = MARVELL_PHY_ID_88E1540 ,
@@ -2413,7 +2392,6 @@ static struct phy_driver marvell_drivers[] = {
24132392 .get_stats = marvell_get_stats ,
24142393 .get_tunable = m88e1540_get_tunable ,
24152394 .set_tunable = m88e1540_set_tunable ,
2416- .link_change_notify = m88e1011_link_change_notify ,
24172395 },
24182396 {
24192397 .phy_id = MARVELL_PHY_ID_88E1545 ,
@@ -2436,7 +2414,6 @@ static struct phy_driver marvell_drivers[] = {
24362414 .get_stats = marvell_get_stats ,
24372415 .get_tunable = m88e1540_get_tunable ,
24382416 .set_tunable = m88e1540_set_tunable ,
2439- .link_change_notify = m88e1011_link_change_notify ,
24402417 },
24412418 {
24422419 .phy_id = MARVELL_PHY_ID_88E3016 ,
@@ -2479,7 +2456,6 @@ static struct phy_driver marvell_drivers[] = {
24792456 .get_stats = marvell_get_stats ,
24802457 .get_tunable = m88e1540_get_tunable ,
24812458 .set_tunable = m88e1540_set_tunable ,
2482- .link_change_notify = m88e1011_link_change_notify ,
24832459 },
24842460};
24852461
0 commit comments