net: dsa: qca8k: add support for switch rev
authorAnsuel Smith <ansuelsmth@gmail.com>
Fri, 14 May 2021 21:00:04 +0000 (23:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 May 2021 22:30:22 +0000 (15:30 -0700)
commit95ffeaf18b3bb90eeef52cbf7d79ccc9d0345ff5
tree5b03d678a4367e14eed0cca9cd80e9e00a29352e
parent0fc57e4b5e39461fc0a54aae0afe4241363a7267
net: dsa: qca8k: add support for switch rev

qca8k internal phy driver require some special debug value to be set
based on the switch revision. Rework the switch id read function to
also read the chip revision.

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