Add kr support in mac driver for dpaa2 Signed-off-by: Florinel Iordache <florinel.iordache@xxxxxxx> Signed-off-by: Ioana Ciornei <ioana.ciornei@xxxxxxx> --- drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c b/drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c index 3ee236c..f3c384c 100644 --- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c +++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c @@ -1,5 +1,5 @@ // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) -/* Copyright 2019 NXP */ +/* Copyright 2019, 2020 NXP */ #include "dpaa2-eth.h" #include "dpaa2-mac.h" @@ -71,6 +71,8 @@ static bool dpaa2_mac_phy_mode_mismatch(struct dpaa2_mac *mac, case PHY_INTERFACE_MODE_RGMII_ID: case PHY_INTERFACE_MODE_RGMII_RXID: case PHY_INTERFACE_MODE_RGMII_TXID: + case PHY_INTERFACE_MODE_10GKR: + case PHY_INTERFACE_MODE_40GKR4: return (interface != mac->if_mode); default: return true; @@ -103,6 +105,12 @@ static void dpaa2_mac_validate(struct phylink_config *config, phylink_set(mask, 100baseT_Full); phylink_set(mask, 1000baseT_Full); break; + case PHY_INTERFACE_MODE_10GKR: + phylink_set(mask, 10000baseKR_Full); + break; + case PHY_INTERFACE_MODE_40GKR4: + phylink_set(mask, 40000baseKR4_Full); + break; default: goto empty_set; } -- 1.9.1