mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-11-04 06:54:27 -05:00 
			
		
		
		
	remove netif schedule from the ag71xx driver
SVN-Revision: 14494
This commit is contained in:
		
							parent
							
								
									f245bc83f2
								
							
						
					
					
						commit
						09e02ec5a7
					
				@ -138,12 +138,8 @@ static void ag71xx_phy_link_adjust(struct net_device *dev)
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (phydev->link != ag->link) {
 | 
						if (phydev->link != ag->link)
 | 
				
			||||||
		if (phydev->link)
 | 
					 | 
				
			||||||
			netif_schedule(dev);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		status_change = 1;
 | 
							status_change = 1;
 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	ag->link = phydev->link;
 | 
						ag->link = phydev->link;
 | 
				
			||||||
	ag->duplex = phydev->duplex;
 | 
						ag->duplex = phydev->duplex;
 | 
				
			||||||
 | 
				
			|||||||
@ -1,16 +0,0 @@
 | 
				
			|||||||
--- a/drivers/net/ag71xx/ag71xx_phy.c
 | 
					 | 
				
			||||||
+++ b/drivers/net/ag71xx/ag71xx_phy.c
 | 
					 | 
				
			||||||
@@ -138,12 +138,8 @@ static void ag71xx_phy_link_adjust(struc
 | 
					 | 
				
			||||||
 		}
 | 
					 | 
				
			||||||
 	}
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
-	if (phydev->link != ag->link) {
 | 
					 | 
				
			||||||
-		if (phydev->link)
 | 
					 | 
				
			||||||
-			netif_schedule(dev);
 | 
					 | 
				
			||||||
-
 | 
					 | 
				
			||||||
+	if (phydev->link != ag->link)
 | 
					 | 
				
			||||||
 		status_change = 1;
 | 
					 | 
				
			||||||
-	}
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
 	ag->link = phydev->link;
 | 
					 | 
				
			||||||
 	ag->duplex = phydev->duplex;
 | 
					 | 
				
			||||||
@ -1,16 +0,0 @@
 | 
				
			|||||||
--- a/drivers/net/ag71xx/ag71xx_phy.c
 | 
					 | 
				
			||||||
+++ b/drivers/net/ag71xx/ag71xx_phy.c
 | 
					 | 
				
			||||||
@@ -138,12 +138,8 @@ static void ag71xx_phy_link_adjust(struc
 | 
					 | 
				
			||||||
 		}
 | 
					 | 
				
			||||||
 	}
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
-	if (phydev->link != ag->link) {
 | 
					 | 
				
			||||||
-		if (phydev->link)
 | 
					 | 
				
			||||||
-			netif_schedule(dev);
 | 
					 | 
				
			||||||
-
 | 
					 | 
				
			||||||
+	if (phydev->link != ag->link)
 | 
					 | 
				
			||||||
 		status_change = 1;
 | 
					 | 
				
			||||||
-	}
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
 	ag->link = phydev->link;
 | 
					 | 
				
			||||||
 	ag->duplex = phydev->duplex;
 | 
					 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user