]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit54f60f09d57b82bcc529c7ad020983e1c30b5cbf
tree32bc16133e832da12436e7c3d179fc1adf9be856
parentdd5b14519583f109275a2b82719510d9b12c4ea5
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: 52ec49c332ad ("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