]> git.baikalelectronics.ru Git - kernel.git/commit
net: phylink: add pcs_validate() method
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 15 Dec 2021 15:34:20 +0000 (15:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Dec 2021 10:37:13 +0000 (10:37 +0000)
commit8323dd02d3985b3c4eb70722461a051c2a3641eb
treeac72e052b58c58c642bf174517cdcae35b570ab2
parent61043ed40eefb5c58c54ba4d994061f5736d6a98
net: phylink: add pcs_validate() method

Add a hook for PCS to validate the link parameters. This avoids MAC
drivers having to have knowledge of their PCS in their validate()
method, thereby allowing several MAC drivers to be simplfied.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c
include/linux/phylink.h