OSDN Git Service

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)
commit0d22d4b626a4eaa3196019092eb6c1919e9f8caa
treeac72e052b58c58c642bf174517cdcae35b570ab2
parentd1e86325af377129adb7fc6f34eb044ca6068b47
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