net: dsa: b53: Stop using dev->cpu_port incorrectly
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 10 Nov 2017 19:33:26 +0000 (11:33 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Nov 2017 12:55:15 +0000 (21:55 +0900)
commitc499696e7901bda18385ac723b7bd27c3a4af624
tree2af71c8275901b90d953726a5df1fa6e04de07b9
parent4d215ae730786f51b108873227c67dc7815dbdef
net: dsa: b53: Stop using dev->cpu_port incorrectly

dev->cpu_port is the driver local information that should only be used
to look up register offsets for a particular port, when they differ
(e.g: IMP port override), but it should certainly not be used in place
of the DSA configured CPU port.

Since the DSA switch layer calls port_vlan_{add,del}() on the CPU port
as well, we can remove the specific setting of the CPU port within
port_vlan_{add,del}.

Fixes: ff39c2d68679 ("net: dsa: b53: Add bridge support")
Fixes: 967dd82ffc52 ("net: dsa: b53: Add support for Broadcom RoboSwitch")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/b53/b53_common.c