mirror of
				https://github.com/xcat2/xNBA.git
				synced 2025-11-03 21:02:36 +00:00 
			
		
		
		
	[forcedeth] Clear the MII link status register on link status changes
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
		
				
					committed by
					
						
						Michael Brown
					
				
			
			
				
	
			
			
			
						parent
						
							48624cf94a
						
					
				
				
					commit
					9215b7f4c0
				
			@@ -967,6 +967,12 @@ static void
 | 
			
		||||
forcedeth_link_status ( struct net_device *netdev )
 | 
			
		||||
{
 | 
			
		||||
	struct forcedeth_private *priv = netdev_priv ( netdev );
 | 
			
		||||
	void *ioaddr = priv->mmio_addr;
 | 
			
		||||
	u32 mii_status;
 | 
			
		||||
 | 
			
		||||
	/* Clear the MII link change status */
 | 
			
		||||
	mii_status = readl ( ioaddr + NvRegMIIStatus );
 | 
			
		||||
	writel ( NVREG_MIISTAT_LINKCHANGE, ioaddr + NvRegMIIStatus );
 | 
			
		||||
 | 
			
		||||
	if ( nv_update_linkspeed ( priv ) == 1 )
 | 
			
		||||
		netdev_link_up ( netdev );
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user