Skip to content
Commit e5a3be4c authored by Russell King (Oracle)'s avatar Russell King (Oracle) Committed by Xulin Sun
Browse files

net: phylink: add generic validate implementation

commit b786d2b0fcbf23f46f99c7b33f3ad52f31bf6749 from
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git



commit 34ae2c09 upstream.

Add a generic validate() implementation using the supported_interfaces
and a bitmask of MAC pause/speed/duplex capabilities. This allows us
to entirely eliminate many driver private validate() implementations.

We expose the underlying phylink_get_linkmodes() function so that
drivers which have special needs can still benefit from conversion.

Signed-off-by: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarVignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: default avatarXulin Sun <xulin.sun@windriver.com>
parent 7cc4747b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment