dpaa2-mac: add PCS support through the Lynx module
authorIoana Ciornei <ioana.ciornei@nxp.com>
Wed, 23 Sep 2020 15:41:23 +0000 (18:41 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Sep 2020 02:49:36 +0000 (19:49 -0700)
commit94ae899b20961a248693db6b284de9cf4c8cb7c3
tree80940ee13b54eb0e9f8e3d2ca01ec782220b5320
parentb5b6775d72e8662b5ea7f892bf06db4831e2c1aa
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>
drivers/net/ethernet/freescale/dpaa2/Kconfig
drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c
drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.h