mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
net: dsa: qca8k: Enable RXMAC when bringing up a port
commiteee1fe6476upstream. 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:6b93fb4648("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
62310e69f1
commit
1fbc97b32b
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user