summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 03d441b)
raw | patch | inline | side by side (parent: 03d441b)
author | Murali Karicheri <m-karicheri2@ti.com> | |
Fri, 30 Jan 2015 21:29:40 +0000 (16:29 -0500) | ||
committer | Murali Karicheri <m-karicheri2@ti.com> | |
Fri, 30 Jan 2015 22:58:13 +0000 (17:58 -0500) |
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>
brought down. This patch fixes this.
Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
drivers/net/ethernet/ti/keystone_ethss.c | patch | blob | history | |
drivers/net/ethernet/ti/keystone_ethss2.c | patch | blob | history |
index 9c4c14ab52df561afde83d55659dc6cc134aacb7..a6c55d22e2ea049c810eb161c12f2678a0fd1290 100644 (file)
else
sgmii_port_regs = priv->sgmii_port34_regs;
+ /* disable forwarding */
+ if (slave->ale)
+ cpsw_ale_control_set(slave->ale, slave->port_num,
+ ALE_PORT_STATE, ALE_PORT_STATE_DISABLE);
+
keystone_sgmii_rtreset(sgmii_port_regs, slave->slave_num, true);
cpsw_port_reset(slave);
index 0e93f526ba34080733306fbcf9a7847f1b19abcb..7ff7363575fc7d7ce79a33148909d159e009f87e 100644 (file)
static void cpsw2_slave_stop(struct cpsw2_slave *slave, struct cpsw2_priv *priv)
{
+ /* disable forwarding */
+ if (slave->ale)
+ cpsw_ale_control_set(slave->ale, slave->port_num,
+ ALE_PORT_STATE, ALE_PORT_STATE_DISABLE);
+
cpsw2_port_reset(slave);
if (!slave->phy)