update AT91SAM9260 macb driver
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2051 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
97f10d0a1a
commit
4b949cbee0
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue