From: Fugang Duan <[email protected]>
Date: Thu, 10 Sep 2015 09:35:39 +0800

> There exist one issue by below case that case system hang:
> ifconfig eth0 down
> ifconfig eth0 hw ether 00:10:19:19:81:19
> 
> After eth0 down, all fec clocks are gated off. In the .fec_set_mac_address()
> function, it will set new MAC address to registers, which causes system hang.
> 
> So it needs to add netif status check to avoid registers access when clocks 
> are
> gated off. Until eth0 up the new MAC address are wrote into related registers.
> 
> V2:
> As Lucas Stach's suggestion, add a comment in the code to explain why it 
> needed.
> 
> CC: Lucas Stach <[email protected]>
> CC: Florian Fainelli <[email protected]>
> Signed-off-by: Fugang Duan <[email protected]>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to