]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvpp2: phylink support
authorAntoine Tenart <antoine.tenart@bootlin.com>
Thu, 17 May 2018 08:29:31 +0000 (10:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 May 2018 20:11:39 +0000 (16:11 -0400)
commit030bc6b767a7bbb9304f632fcf42b1cbf2361b69
tree3da0dc72ecd64445c107819352d39c366ed78c2c
parent4372a1ca0730ed765e167a7e23baa00c4c9f9dbe
net: mvpp2: phylink support

Convert the PPv2 driver to implement phylink helpers, and use phylink in
DT mode. The other mode supported is ACPI, which will need further work
in order to be entirely compatible with phylink.

The MAC and GoP configuration functions were completely moved to fit
into the phylink helpers. When a PHY is always present between the MAC
and the physical port, phylink only is used, but when this is not the
case (the MAC directly is connected to the physical port) the link IRQ
is used to detect changes in the link state and call phylink_mac_change.

The ACPI mode do not uses phylink as of now, and the changes shouldn't
impact its use.

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/Kconfig
drivers/net/ethernet/marvell/mvpp2.c