net: dsa: qca8k: make sure PAD0 MAC06 exchange is disabled
authorAnsuel Smith <ansuelsmth@gmail.com>
Tue, 2 Nov 2021 18:30:41 +0000 (19:30 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Nov 2021 14:21:06 +0000 (14:21 +0000)
commit5f15d392dcb4aa250a63d6f2c5adfc26c0aedc78
tree32bc16133e832da12436e7c3d179fc1adf9be856
parent563bcbae3ba233c275c244bfce2efe12938f5363
net: dsa: qca8k: make sure PAD0 MAC06 exchange is disabled

Some device set MAC06 exchange in the bootloader. This cause some
problem as we don't support this strange mode and we just set the port6
as the primary CPU port. With MAC06 exchange, PAD0 reg configure port6
instead of port0. Add an extra check and explicitly disable MAC06 exchange
to correctly configure the port PAD config.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Fixes: 3fcf734aa482 ("net: dsa: qca8k: add support for cpu port 6")
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca8k.c
drivers/net/dsa/qca8k.h