]> git.baikalelectronics.ru Git - kernel.git/commit
net: macb: convert to phylink
authorAntoine Tenart <antoine.tenart@bootlin.com>
Wed, 13 Nov 2019 09:00:06 +0000 (10:00 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Nov 2019 19:45:42 +0000 (11:45 -0800)
commitb933f9aff8902f17adb68547f400f8d252e4de06
treef1657db519d4941b31f64dccb25c9ec9b1fd4bc8
parentbaf80ff3f3396880a00598db49d9f5515474429c
net: macb: convert to phylink

This patch converts the MACB Ethernet driver to the Phylink framework.
The MAC configuration is moved to the Phylink ops and Phylink helpers
are now used in the ethtools functions. This helps to access the flow
control and pauseparam logic and this will be helpful in the future for
boards using this controller with SFP cages.

Tested-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/Kconfig
drivers/net/ethernet/cadence/macb.h
drivers/net/ethernet/cadence/macb_main.c