diff options
author | David S. Miller <davem@davemloft.net> | 2019-03-03 13:48:49 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-03-03 13:48:49 -0800 |
commit | 41bc0ddb80e0380ab88b3902e638c89b3453b421 (patch) | |
tree | b43e6d6876f27e264c557266bbeb809780ad8b44 /drivers/net/dsa/microchip/ksz_common.c | |
parent | d5fa9c55e5f32e1ebe2a1e4b5e4a21d54db17a16 (diff) | |
parent | 8c29bebb1f8a68556db70088fd8f5938527a7346 (diff) |
Merge branch 'net-dsa-microchip-add-KSZ9893-switch-support'
Tristram Ha says:
====================
net: dsa: microchip: add KSZ9893 switch support
This series of patches is to modify the KSZ9477 DSA driver to support
running KSZ9893 switch.
The KSZ9893 switch is similar to KSZ9477 except the ingress tail tag has
1 byte instead of 2 bytes. The XMII register that governs the MAC
communication also has different register definitions.
v1
- Put KSZ9893 tagging in separate patch
- Remove other switch support
====================
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) |