]> git.baikalelectronics.ru Git - kernel.git/commit
net: macb: use .mac_select_pcs() interface
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 5 Jan 2022 13:15:15 +0000 (13:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Jan 2022 12:31:49 +0000 (12:31 +0000)
commit586590fd8f169fac01afaffce55873bf4738a7d7
tree458f3c35754bd75682141956f1eabad15e28025e
parentd12d5253178ecfb360ee085cfa660b04787536b4
net: macb: use .mac_select_pcs() interface

Convert the PCS selection to use mac_select_pcs, which allows the PCS
to perform any validation it needs.

We must use separate phylink_pcs instances for the USX and SGMII PCS,
rather than just changing the "ops" pointer before re-setting it to
phylink as this interface queries the PCS, rather than requesting it
to be changed.

Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.h
drivers/net/ethernet/cadence/macb_main.c