在内核驱动/drivers/net/ethernet/freescale/fec_main.c中修改 在static int fec_set_mac_address(struct net_device *ndev, void *p)中,加上以下内容即可 /* Add netif status check here to avoid system hang in below case: * ifconfig ethx down; ifconfig ethx hw ether xx:xx:xx:xx:xx:xx; * After ethx down, fec all clocks are gated off and then register * access causes system hang. */ if (!netif_running(ndev)) return 0; 该bug在NXP官方提供的4.1内核中已经修改了,在3.14的内核中可以加上上边的语句就可以。 |
|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )
GMT+8, 2024-11-23 20:07
Powered by Discuz! X3.4
© 2001-2013 Comsenz Inc.