]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: fill in supported_interfaces
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 26 Jan 2022 10:26:05 +0000 (10:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Jan 2022 11:20:37 +0000 (11:20 +0000)
commitc96fb38faa93c7b24538aa21bc333e80548f9c8e
treee18fa5ac69ef3826ad1de87e0ad6cdab56d84dec
parentb87fd36b3dc41bf178a85b6d536c9288ae878632
net: stmmac: fill in supported_interfaces

Fill in phylink's supported_interfaces bitmap with the PHY interface
modes which can be used to talk to the PHY.

We indicate that the PHY interface mode passed in platform data is
always supported, as this is the initial mode passed into phylink.
When there is no PCS specified, we assume that this is the only mode
that is supported - indeed, the driver appears not to support dynamic
switching of interface types at present.

When a xpcs is present, it defines the PHY interface modes that the
stmmac driver can support. Request the supported interfaces from the
xpcs driver, and pass them to phylink.

Tested-by: Wong Vee Khee <vee.khee.wong@linux.intel.com> # Intel EHL Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c