]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: dsa: qca8k: fix delay applied to wrong cpu in parse_port_config
authorAnsuel Smith <ansuelsmth@gmail.com>
Sun, 17 Oct 2021 14:56:46 +0000 (16:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Oct 2021 13:22:28 +0000 (14:22 +0100)
commit06dd34a628ae5b6a839b757e746de165d6789ca8
treec139c5d73a2001f19643ae3372a9b98931b62253
parent7adaf56edd03751badc3f045e664e30f9d1b195e
net: dsa: qca8k: fix delay applied to wrong cpu in parse_port_config

Fix delay settings applied to wrong cpu in parse_port_config. The delay
values is set to the wrong index as the cpu_port_index is incremented
too early. Start the cpu_port_index to -1 so the correct value is
applied to address also the case with invalid phy mode and not available
port.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca8k.c