Skip to content

Commit

Permalink
bgmac: reset cached MAC state during chip reset
Browse files Browse the repository at this point in the history
Without this bgmac_adjust_link didn't know it should re-initialize MAC
state. This led to the MAC not working after if down & up routine.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Rafał Miłecki authored and David S. Miller committed Dec 11, 2013
1 parent 4f8f61e commit d469962
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ethernet/broadcom/bgmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,8 @@ static void bgmac_chip_reset(struct bgmac *bgmac)
BGMAC_CMDCFG_CFE |
BGMAC_CMDCFG_SR,
false);
bgmac->mac_speed = SPEED_UNKNOWN;
bgmac->mac_duplex = DUPLEX_UNKNOWN;

bgmac_clear_mib(bgmac);
if (core->id.id == BCMA_CORE_4706_MAC_GBIT)
Expand Down

0 comments on commit d469962

Please sign in to comment.