aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/dsa/microchip/ksz_dcb.c
diff options
context:
space:
mode:
authorTristram Ha <tristram.ha@microchip.com>2024-08-26 21:43:08 +0000
committerJakub Kicinski <kuba@kernel.org>2024-08-27 16:14:18 -0700
commita96c5515d0d15df103598b2bc57245d66143b5dd (patch)
treed43cf5e153d6321e234fe7c230edc85c4000b971 /drivers/net/dsa/microchip/ksz_dcb.c
parente3717f2ad1a2620730a7086e032ffa7242f8aa23 (diff)
net: dsa: microchip: Add KSZ8895/KSZ8864 switch support
KSZ8895/KSZ8864 is a switch family between KSZ8863/73 and KSZ8795, so it shares some registers and functions in those switches already implemented in the KSZ DSA driver. Signed-off-by: Tristram Ha <tristram.ha@microchip.com> Tested-by: Pieter Van Trappen <pieter.van.trappen@cern.ch> Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/dsa/microchip/ksz_dcb.c')
-rw-r--r--drivers/net/dsa/microchip/ksz_dcb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/microchip/ksz_dcb.c b/drivers/net/dsa/microchip/ksz_dcb.c
index 086bc9b3cf53..30b4a6186e38 100644
--- a/drivers/net/dsa/microchip/ksz_dcb.c
+++ b/drivers/net/dsa/microchip/ksz_dcb.c
@@ -113,7 +113,7 @@ static void ksz_get_default_port_prio_reg(struct ksz_device *dev, int *reg,
static void ksz_get_dscp_prio_reg(struct ksz_device *dev, int *reg,
int *per_reg, u8 *mask)
{
- if (ksz_is_ksz87xx(dev)) {
+ if (ksz_is_ksz87xx(dev) || ksz_is_8895_family(dev)) {
*reg = KSZ8765_REG_TOS_DSCP_CTRL;
*per_reg = 4;
*mask = GENMASK(1, 0);