]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Mar 2014 19:46:20 +0000 (15:46 -0400)
commit4400c0d00be423a3f22a51e10ffbfafdd859ab7a
tree394349b487a8e228c89adcef0b4877cfaeeb8650
parentfd7246a54144d58ff564f98d0b3f6c039942fc4d
eth: fec: Fix lost promiscuous mode after reconnecting cable

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>
drivers/net/ethernet/freescale/fec_main.c