Skip to contentSkip to conversation

bgmac: reset cached MAC state during chip reset

PATCH New Rafał Miłecki 1 participant 1 message Dec 11, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bgmac: reset cached MAC state during chip reset

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.

---
 drivers/net/ethernet/broadcom/bgmac.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/net/ethernet/broadcom/bgmac.c +2 -0
index 055204e..5b5ac71 100644
@@ -951,6 +951,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)
Signature · 1 line
1.7.10.4