Browse Source

update AT91SAM9260 macb driver

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2051 bbd45198-f89e-11dd-88c7-29a3b14d5316
luohui2320@gmail.com 13 years ago
parent
commit
4b949cbee0
1 changed files with 2 additions and 5 deletions
  1. 2 5
      bsp/at91sam9260/macb.c

+ 2 - 5
bsp/at91sam9260/macb.c

@@ -324,15 +324,12 @@ void macb_update_link(struct rt_macb_eth *macb)
 			rt_kprintf("%s: link up (%dMbps/%s-duplex)\n",
 					dev->parent.name, macb->speed,
 					DUPLEX_FULL == macb->duplex ? "Full":"Half");
-			//macb->parent.link_status = 1;
-			//netif_set_link_up(macb->parent.netif);
+			eth_device_linkchange(&macb->parent, RT_TRUE);
 		} else {
 			rt_kprintf("%s: link down\n", dev->parent.name);
-					//macb->parent.link_status = 0;
-			//netif_set_link_down(macb->parent.netif);
+			eth_device_linkchange(&macb->parent, RT_FALSE);
 		}
 
-		//eth_device_linkchange(&macb->parent, RT_TRUE);
 	}
 
 }