- 论坛徽章:
- 1
|
本帖最后由 arm-linux-gcc 于 2014-05-21 10:25 编辑
回复 16# sunwj0525
你的板子上是什么网卡?
uboot中的eth传输完数据,就会调用struct eth_device的halt回调
以dm9000为例,可以把下面的代码注释掉,这样就不会真正的去做shutdown了
static void dm9000_halt(struct eth_device *netdev)
{
DM9000_DBG("%s\n", __func__);
#if 0 /* fuck+ */
/* RESET devie */
phy_write(0, 0x8000); /* PHY RESET */
DM9000_iow(DM9000_GPR, 0x01); /* Power-Down PHY */
DM9000_iow(DM9000_IMR, 0x80); /* Disable all interrupt */
DM9000_iow(DM9000_RCR, 0x00); /* Disable RX */
#endif /* fuck- */
}
usb网卡smsc95xx的halt就是这么实现的,没做任何实际关闭动作
static void smsc95xx_halt(struct eth_device *eth)
{
debug("** %s()\n", __func__);
} |
|