net: dsa: microchip: lan937x: add dsa_tag_protocol
This patch update the ksz_get_tag_protocol to return LAN937x specific tag if the chip id matches one of LAN937x series switch Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
55ab6ffaf3
commit
99b16df0cd
@@ -1254,6 +1254,9 @@ static enum dsa_tag_protocol ksz_get_tag_protocol(struct dsa_switch *ds,
|
||||
dev->chip_id == KSZ9567_CHIP_ID)
|
||||
proto = DSA_TAG_PROTO_KSZ9477;
|
||||
|
||||
if (is_lan937x(dev))
|
||||
proto = DSA_TAG_PROTO_LAN937X_VALUE;
|
||||
|
||||
return proto;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user