From 4b949cbee02d82753b0340bd5e755d1227fb6310 Mon Sep 17 00:00:00 2001 From: "luohui2320@gmail.com" Date: Sat, 14 Apr 2012 11:18:29 +0000 Subject: [PATCH] update AT91SAM9260 macb driver git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2051 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- bsp/at91sam9260/macb.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/bsp/at91sam9260/macb.c b/bsp/at91sam9260/macb.c index ae18e3ffe1..0d9d5c8c32 100755 --- a/bsp/at91sam9260/macb.c +++ b/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); } }