]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita49062fedac36330a32b35c30db723314afba2ea
tree2af71c8275901b90d953726a5df1fa6e04de07b9
parent0a3f18b8ceec268bab426ecdb4146069071d80f3
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: f19d0246277f ("net: dsa: b53: Add bridge support")
Fixes: c29d61c3ee43 ("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