OSDN Git Service

net: phylink: add phylink_get_link_timer_ns() helper
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 27 Oct 2022 13:10:37 +0000 (14:10 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 29 Oct 2022 04:48:30 +0000 (21:48 -0700)
commit9c5a170677c3c8facc83e931a57f4c99c0511ae0
tree1a2cc47902cfdcf8bd9c63d24421a63bc4463128
parent23f232592d35bdf8dc92c4bc92ea0a2df1d3ce9c
net: phylink: add phylink_get_link_timer_ns() helper

Add a helper to convert the PHY interface mode to the required link
timer setting as stated by the appropriate standard. Inappropriate
interface modes return an error.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/phylink.h