diff options
author | Ioana Ciornei <ioana.ciornei@nxp.com> | 2020-09-23 18:41:23 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-24 19:49:36 -0700 |
commit | 94ae899b20961a248693db6b284de9cf4c8cb7c3 (patch) | |
tree | 80940ee13b54eb0e9f8e3d2ca01ec782220b5320 /drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.h | |
parent | b5b6775d72e8662b5ea7f892bf06db4831e2c1aa (diff) | |
download | lwn-94ae899b20961a248693db6b284de9cf4c8cb7c3.tar.gz lwn-94ae899b20961a248693db6b284de9cf4c8cb7c3.zip |
dpaa2-mac: add PCS support through the Lynx module
Include PCS support in the dpaa2-eth driver by integrating it with the
new Lynx PCS module. There is not much to talk about in terms of changes
needed in the dpaa2-eth driver since the only steps necessary are to
find the MDIO device representing the PCS, register it to the Lynx PCS
module and then let phylink know if its existence also.
After this, the PCS callbacks will be treated directly by Lynx, without
interraction from dpaa2-eth's part.
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.h')
-rw-r--r-- | drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.h b/drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.h index 2130d9c7d40e..955a52856210 100644 --- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.h +++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.h @@ -7,6 +7,7 @@ #include <linux/of_mdio.h> #include <linux/of_net.h> #include <linux/phylink.h> +#include <linux/pcs-lynx.h> #include "dpmac.h" #include "dpmac-cmd.h" @@ -21,6 +22,7 @@ struct dpaa2_mac { struct phylink *phylink; phy_interface_t if_mode; enum dpmac_link_type if_link_type; + struct lynx_pcs *pcs; }; bool dpaa2_mac_is_type_fixed(struct fsl_mc_device *dpmac_dev, |