diff options
author | Tristram Ha <Tristram.Ha@microchip.com> | 2019-02-28 19:57:24 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-03-03 13:48:49 -0800 |
commit | 8c29bebb1f8a68556db70088fd8f5938527a7346 (patch) | |
tree | b43e6d6876f27e264c557266bbeb809780ad8b44 /drivers/net/dsa/microchip/ksz_common.c | |
parent | 88b573af91dafd60ba35b2dc6af3f9d8d7168146 (diff) | |
download | kernel_replicant_linux-8c29bebb1f8a68556db70088fd8f5938527a7346.tar.gz kernel_replicant_linux-8c29bebb1f8a68556db70088fd8f5938527a7346.tar.bz2 kernel_replicant_linux-8c29bebb1f8a68556db70088fd8f5938527a7346.zip |
net: dsa: microchip: add KSZ9893 switch support
Add KSZ9893 switch support in KSZ9477 driver. This switch is similar to
KSZ9477 except the ingress tail tag has 1 byte instead of 2 bytes, so
KSZ9893 tagging will be used.
The XMII register that governs how the host port communicates with the
MAC also has different register definitions.
Signed-off-by: Tristram Ha <Tristram.Ha@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/microchip/ksz_common.c')
-rw-r--r-- | drivers/net/dsa/microchip/ksz_common.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/dsa/microchip/ksz_common.c b/drivers/net/dsa/microchip/ksz_common.c index 9328b88849d2..39dace8e3512 100644 --- a/drivers/net/dsa/microchip/ksz_common.c +++ b/drivers/net/dsa/microchip/ksz_common.c @@ -453,7 +453,9 @@ int ksz_switch_register(struct ksz_device *dev, if (ret) return ret; - dev->interface = PHY_INTERFACE_MODE_MII; + /* Host port interface will be self detected, or specifically set in + * device tree. + */ if (dev->dev->of_node) { ret = of_get_phy_mode(dev->dev->of_node); if (ret >= 0) |