]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Move the phylink driver calls into port.c
authorIoana Ciornei <ioana.ciornei@nxp.com>
Tue, 28 May 2019 17:38:15 +0000 (20:38 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 May 2019 04:48:53 +0000 (21:48 -0700)
commite2f81a93830a4910fa1775428dade03906321c98
tree238625363ff83589cfbcd0080b4ba38c932cd0c1
parent1af331169e98d82156d2ec9750cc397383274c31
net: dsa: Move the phylink driver calls into port.c

In order to have a common handling of PHYLINK for the slave and non-user
ports, the DSA core glue logic (between PHYLINK and the driver) must use
an API that does not rely on a struct net_device.

These will also be called by the CPU-port-handling code in a further
patch.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Suggested-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa_priv.h
net/dsa/port.c
net/dsa/slave.c