aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMichal Vokáč <michal.vokac@ysoft.com>2019-09-26 10:59:17 +0200
committerDavid S. Miller <davem@davemloft.net>2019-09-30 11:06:38 -0700
commit7ae6d93c8f052b7a77ba56ed0f654e22a2876739 (patch)
treec3950feb4b7a972f78de4c7c00b69d00b694a29d /net
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net (diff)
downloadlinux-dev-7ae6d93c8f052b7a77ba56ed0f654e22a2876739.tar.xz
linux-dev-7ae6d93c8f052b7a77ba56ed0f654e22a2876739.zip
net: dsa: qca8k: Use up to 7 ports for all operations
The QCA8K family supports up to 7 ports. So use the existing QCA8K_NUM_PORTS define to allocate the switch structure and limit all operations with the switch ports. This was not an issue until commit 0394a63acfe2 ("net: dsa: enable and disable all ports") disabled all unused ports. Since the unused ports 7-11 are outside of the correct register range on this switch some registers were rewritten with invalid content. Fixes: 6b93fb46480a ("net-next: dsa: add new driver for qca8xxx family") Fixes: a0c02161ecfc ("net: dsa: variable number of ports") Fixes: 0394a63acfe2 ("net: dsa: enable and disable all ports") 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>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions