aboutsummaryrefslogtreecommitdiff
path: root/include/linux/net
diff options
context:
space:
mode:
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2021-12-15 15:34:15 +0000
committerDavid S. Miller <davem@davemloft.net>2021-12-16 10:37:13 +0000
commitd1e86325af377129adb7fc6f34eb044ca6068b47 (patch)
treef988a358dd1df49c76c2bd440bf8e2e01123fe98 /include/linux/net
parent4134c846b644e3c5d3a000d0cf1e07b4a013fd45 (diff)
net: phylink: add mac_select_pcs() method to phylink_mac_ops
mac_select_pcs() allows us to have an explicit point to query which PCS the MAC wishes to use for a particular PHY interface mode, thereby allowing us to add support to validate the link settings with the PCS. Phylink will also use this to select the PCS to be used during a major configuration event without the MAC driver needing to call phylink_set_pcs(). Note that if mac_select_pcs() is present, the supported_interfaces bitmap must be filled in; this avoids mac_select_pcs() being called with PHY_INTERFACE_MODE_NA when we want to get support for all interface types. Phylink will return an error in phylink_create() unless this condition is satisfied. Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/net')
0 files changed, 0 insertions, 0 deletions