diff options
author | Fan Zhicheng <r32736@freescale.com> | 2010-12-28 14:39:31 +0800 |
---|---|---|
committer | Alan Tull <alan.tull@freescale.com> | 2011-01-21 16:34:17 -0600 |
commit | f674af9c672238ea58dab97f0406c70d23c6f810 (patch) | |
tree | 0e834bfd86527c684fa57e867572f500ef8f65d2 | |
parent | 58da1e07dcc989b29afa44537322db35d3106033 (diff) |
ENGR00137224 L2Switch: Fix L2Switch port learn not take effect issue.
Fix Mx28 L2Switch port learning not works issue.
Signed-off-by: Fan Zhicheng <r32736@freescale.com>
-rw-r--r-- | drivers/net/fec_switch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/fec_switch.c b/drivers/net/fec_switch.c index dc3f2050c11b..8467f746ef63 100644 --- a/drivers/net/fec_switch.c +++ b/drivers/net/fec_switch.c @@ -1,7 +1,7 @@ /* * L2 switch Controller (Etheren switch) driver for Mx28. * - * Copyright (C) 2010 Freescale Semiconductor, Inc. All Rights Reserved. + * Copyright (C) 2010-2011 Freescale Semiconductor, Inc. All Rights Reserved. * Shrek Wu (B16972@freescale.com) * * This program is free software; you can redistribute it and/or modify it @@ -875,7 +875,7 @@ static void esw_get_port_learning( struct switch_t *fecp; fecp = fep->hwp; - *ulPortLearning = (readl(&fecp->ESW_BKLR) & 0xff00) >> 16; + *ulPortLearning = (readl(&fecp->ESW_BKLR) & 0xff0000) >> 16; #ifdef DEBUG_PORT_LEARNING printk(KERN_INFO "%s fecp->ESW_BKLR %#lx\n", __func__, readl(&fecp->ESW_BKLR)); |