Andrew Lunn 2b6fd3ea43 net: dsa: qca8k: Fix port enable for CPU port
The CPU port does not have a PHY connected to it. So calling
phy_support_asym_pause() results in an Opps. As with other DSA
drivers, add a guard that the port is a user port.

Reported-by: Michal Vokáč <michal.vokac@ysoft.com>
Fixes: 0394a63acfe2 ("net: dsa: enable and disable all ports")
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Michal Vokáč <michal.vokac@ysoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-09-27 10:30:58 +02:00
..
2019-09-18 11:14:31 -07:00
2019-09-17 16:54:40 -07:00
2019-09-18 10:33:46 -07:00
2019-09-17 16:57:47 -07:00
2019-09-16 15:52:38 -07:00
2019-09-18 11:14:31 -07:00
2019-09-17 19:04:40 -07:00
2019-09-18 11:14:31 -07:00
2019-09-16 15:52:38 -07:00
2019-09-17 18:40:42 -07:00
2019-09-18 10:04:39 -07:00
2019-09-18 10:04:39 -07:00
2019-09-17 17:55:23 -07:00
2019-09-17 18:40:42 -07:00
2019-09-17 16:57:47 -07:00
2019-09-17 17:55:23 -07:00
2019-09-18 10:33:46 -07:00
2019-09-18 11:14:31 -07:00
2019-09-13 13:57:37 +02:00
2019-09-17 16:57:47 -07:00
2019-09-18 10:04:39 -07:00
2019-09-13 15:57:02 +02:00
2019-09-17 18:40:42 -07:00
2019-09-17 18:40:42 -07:00
2019-09-16 15:52:38 -07:00
2019-09-17 18:40:42 -07:00
2019-09-17 09:44:29 +02:00
2019-09-18 10:50:47 -07:00
2019-09-18 11:14:31 -07:00
2019-09-18 10:33:46 -07:00
2019-09-18 10:04:39 -07:00
2019-09-18 11:05:34 -07:00