summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMichal Vokáč <vokac.m@gmail.com>2018-05-23 08:20:20 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-08-03 07:48:04 +0200
commita8760d052c55e012953e83778f034d7d0292fda3 (patch)
treefcc733b266575adc41440452f84c8106851f87fb /drivers
parentef405a8c14315113dc6772c6d394fb859b899036 (diff)
downloadlinux-stable-a8760d052c55e012953e83778f034d7d0292fda3.tar.gz
linux-stable-a8760d052c55e012953e83778f034d7d0292fda3.tar.bz2
linux-stable-a8760d052c55e012953e83778f034d7d0292fda3.zip
net: dsa: qca8k: Enable RXMAC when bringing up a port
commit eee1fe64765c562d8bcaf95e5631a8ea2f760f34 upstream. When a port is brought up/down do not enable/disable only the TXMAC but the RXMAC as well. This is essential for the CPU port to work. Fixes: 6b93fb46480a ("net-next: dsa: add new driver for qca8xxx family") Signed-off-by: Michal Vokáč <michal.vokac@ysoft.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/dsa/qca8k.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/qca8k.c b/drivers/net/dsa/qca8k.c
index 08c58b49c09e..9a08b4bc2ba1 100644
--- a/drivers/net/dsa/qca8k.c
+++ b/drivers/net/dsa/qca8k.c
@@ -473,7 +473,7 @@ qca8k_set_pad_ctrl(struct qca8k_priv *priv, int port, int mode)
static void
qca8k_port_set_status(struct qca8k_priv *priv, int port, int enable)
{
- u32 mask = QCA8K_PORT_STATUS_TXMAC;
+ u32 mask = QCA8K_PORT_STATUS_TXMAC | QCA8K_PORT_STATUS_RXMAC;
/* Port 0 and 6 have no internal PHY */
if ((port > 0) && (port < 6))