aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMurali Karicheri2015-01-30 15:29:40 -0600
committerMurali Karicheri2015-01-30 16:58:13 -0600
commitf5782c377771aec1cf4ee5c045fcf1a06161425a (patch)
treec1e490c776588db7908d24d75d2423b1e9534fd4 /drivers/net/ethernet/ti/keystone_ethss2.c
parent03d441b8102abfd5c89d9a265538f498594484a9 (diff)
downloadlinux-f5782c377771aec1cf4ee5c045fcf1a06161425a.tar.gz
linux-f5782c377771aec1cf4ee5c045fcf1a06161425a.tar.xz
linux-f5782c377771aec1cf4ee5c045fcf1a06161425a.zip
net: keystone: disable slave port state on ifdown
Currently the slave port state is not updated when interface is brought down. This patch fixes this. Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Diffstat (limited to 'drivers/net/ethernet/ti/keystone_ethss2.c')
-rw-r--r--drivers/net/ethernet/ti/keystone_ethss2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ti/keystone_ethss2.c b/drivers/net/ethernet/ti/keystone_ethss2.c
index 0e93f526ba3..7ff7363575f 100644
--- a/drivers/net/ethernet/ti/keystone_ethss2.c
+++ b/drivers/net/ethernet/ti/keystone_ethss2.c
@@ -2565,6 +2565,11 @@ static void cpsw2_port_config(struct cpsw2_slave *slave, int max_rx_len)
2565 2565
2566static void cpsw2_slave_stop(struct cpsw2_slave *slave, struct cpsw2_priv *priv) 2566static void cpsw2_slave_stop(struct cpsw2_slave *slave, struct cpsw2_priv *priv)
2567{ 2567{
2568 /* disable forwarding */
2569 if (slave->ale)
2570 cpsw_ale_control_set(slave->ale, slave->port_num,
2571 ALE_PORT_STATE, ALE_PORT_STATE_DISABLE);
2572
2568 cpsw2_port_reset(slave); 2573 cpsw2_port_reset(slave);
2569 2574
2570 if (!slave->phy) 2575 if (!slave->phy)