linux/drivers/net/dsa
Michal Vokáč f0d532c430 net: dsa: qca8k: Initialize the switch with correct number of ports
Since commit 0394a63acf ("net: dsa: enable and disable all ports")
the dsa core disables all unused ports of a switch. In this case
disabling ports with numbers higher than QCA8K_NUM_PORTS causes that
some switch registers are overwritten with incorrect content.

To fix this, initialize the dsa_switch->num_ports with correct number
of ports.

Fixes: 7e99e34701 ("net: dsa: remove dsa_switch_alloc helper")
Signed-off-by: Michal Vokáč <michal.vokac@ysoft.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-10-28 13:39:31 -07:00
..
b53 net: dsa: remove dsa_switch_alloc helper 2019-10-22 12:37:07 -07:00
microchip net: dsa: remove dsa_switch_alloc helper 2019-10-22 12:37:07 -07:00
mv88e6xxx net: dsa: remove dsa_switch_alloc helper 2019-10-22 12:37:07 -07:00
sja1105 net: dsa: remove dsa_switch_alloc helper 2019-10-22 12:37:07 -07:00
bcm_sf2.c net: dsa: use dsa_to_port helper everywhere 2019-10-22 12:37:06 -07:00
bcm_sf2.h
bcm_sf2_cfp.c net: dsa: use dsa_to_port helper everywhere 2019-10-22 12:37:06 -07:00
bcm_sf2_regs.h
dsa_loop.c net: dsa: remove dsa_switch_alloc helper 2019-10-22 12:37:07 -07:00
dsa_loop.h
dsa_loop_bdinfo.c
Kconfig
lan9303-core.c net: dsa: remove dsa_switch_alloc helper 2019-10-22 12:37:07 -07:00
lan9303.h
lan9303_i2c.c
lan9303_mdio.c
lantiq_gswip.c net: dsa: remove dsa_switch_alloc helper 2019-10-22 12:37:07 -07:00
lantiq_pce.h net: dsa: Use the correct style for SPDX License Identifier 2019-09-22 15:25:08 -07:00
Makefile
mt7530.c net: dsa: remove dsa_switch_alloc helper 2019-10-22 12:37:07 -07:00
mt7530.h net: dsa: mt7530: Add support for port 5 2019-09-05 00:28:23 +02:00
mv88e6060.c net: dsa: remove dsa_switch_alloc helper 2019-10-22 12:37:07 -07:00
mv88e6060.h
qca8k.c net: dsa: qca8k: Initialize the switch with correct number of ports 2019-10-28 13:39:31 -07:00
qca8k.h
realtek-smi-core.c net: dsa: remove dsa_switch_alloc helper 2019-10-22 12:37:07 -07:00
realtek-smi-core.h
rtl8366.c net: dsa: rtl8366: Check VLAN ID and not ports 2019-10-02 12:09:23 -04:00
rtl8366rb.c net: dsa: rtl8366rb: add missing of_node_put after calling of_get_child_by_name 2019-10-01 10:02:56 -07:00
vitesse-vsc73xx-core.c net: dsa: remove dsa_switch_alloc helper 2019-10-22 12:37:07 -07:00
vitesse-vsc73xx-platform.c
vitesse-vsc73xx-spi.c
vitesse-vsc73xx.h