diff options
author | Xie Xiaobo <r63061@freescale.com> | 2010-12-02 17:45:04 +0800 |
---|---|---|
committer | Xie Xiaobo <r63061@freescale.com> | 2010-12-03 14:19:26 +0800 |
commit | f2d5cbc2ce8de0e69d81a3bc30b2fa3e9bc9e080 (patch) | |
tree | 398da679801d3193288cf33552df683783b35a90 | |
parent | 9fbad55f74138262fc6b0c1c4a07cec172f6794e (diff) |
ENGR00126516 L2Switch: Fixed port learning function issue
Enable/disable L2 switch port learning does not take effect,
and this patch fixed the issue.
Signed-off-by: Fan zhicheng <B32736@freescale.com>
-rw-r--r-- | drivers/net/fec_switch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/fec_switch.c b/drivers/net/fec_switch.c index 9fd411af8cca..cdb6b2d344ef 100644 --- a/drivers/net/fec_switch.c +++ b/drivers/net/fec_switch.c @@ -905,6 +905,7 @@ static int esw_port_learning_config( tmp = readl(&fecp->ESW_BKLR); if (disable == 1) { fep->learning_irqhandle_enable = 0; + fecp->switch_imask &= ~MCF_ESW_IMR_LRN; if (port == 0) tmp |= MCF_ESW_BKLR_LD0; else if (port == 1) @@ -3521,7 +3522,7 @@ switch_enet_open(struct net_device *dev) fep->sequence_done = 0; fep->currTime = 0; - fep->learning_irqhandle_enable = 0; + fep->learning_irqhandle_enable = 1; esw_main(fep); |