eth: fec: Fix lost promiscuous mode after reconnecting cable
authorStefan Wahren <stefan.wahren@i2se.com>
Wed, 12 Mar 2014 10:28:19 +0000 (11:28 +0100)
committerJiri Slaby <jslaby@suse.cz>
Fri, 18 Apr 2014 09:07:05 +0000 (11:07 +0200)
commita488bc7135f7bb3c4a716105bda1d119748f87b2
tree3be331286453210465f68ea010ae48b8772989d1
parent3f6f4a798fddeb5702de262e708ff7bddadb67fd
eth: fec: Fix lost promiscuous mode after reconnecting cable

[ Upstream commit 84fe61821e4ebab6322eeae3f3c27f77f0031978 ]

If the Freescale fec is in promiscuous mode and network cable is
reconnected then the promiscuous mode get lost. The problem is caused
by a too soon call of set_multicast_list to re-enable promisc mode.
The FEC_R_CNTRL register changes are overwritten by fec_restart.

This patch fixes this by moving the call behind the init of FEC_R_CNTRL
register in fec_restart.

Successful tested on a i.MX28 board.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/net/ethernet/freescale/fec_main.c