Commit 8d2b169fd78ab7d7903d5686021596d8adb9e930
Committed by
Jason Liu
1 parent
76f9b385fe
Exists in
imx_3.0.35_4.1.0
ENGR00291667-01 net:fec: reinit multicast address when fec restart
Ptp multicast packet receive does not work after Ethernet link is lost for a short time and then reconnected again. Because fec call restart() to reset all multicast when cable hotplug. (cherry picked from commit adfa64f0c2bf35f8b902ae5700f97e7e11ae1794) Signed-off-by: Fugang Duan <B38611@freescale.com> (cherry picked from commit 57a3f0b6888dfa2a59c7f1b738badbec342b2d10)
Showing 1 changed file with 2 additions and 3 deletions Side-by-side Diff
drivers/net/fec.c
... | ... | @@ -1612,9 +1612,8 @@ |
1612 | 1612 | /* Clear any outstanding interrupt. */ |
1613 | 1613 | writel(0xffc00000, fep->hwp + FEC_IEVENT); |
1614 | 1614 | |
1615 | - /* Reset all multicast. */ | |
1616 | - writel(0, fep->hwp + FEC_GRP_HASH_TABLE_HIGH); | |
1617 | - writel(0, fep->hwp + FEC_GRP_HASH_TABLE_LOW); | |
1615 | + /* Setup multicast filter. */ | |
1616 | + set_multicast_list(dev); | |
1618 | 1617 | #ifndef CONFIG_M5272 |
1619 | 1618 | writel(0, fep->hwp + FEC_HASH_TABLE_HIGH); |
1620 | 1619 | writel(0, fep->hwp + FEC_HASH_TABLE_LOW); |