net: ethernet: cortina: Implement .set_pauseparam()
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 29 May 2024 14:00:02 +0000 (16:00 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 1 Jun 2024 23:07:29 +0000 (16:07 -0700)
commitdbdb0918da671bde4e9c4c3e974a5e15358dfa5c
treef0bba722148f9f9585f6bc6fefcd0a4132e66083
parent15c22101db71369c022e25001a339f91cd3f8ddc
net: ethernet: cortina: Implement .set_pauseparam()

The Cortina Gemini ethernet can very well set up TX or RX
pausing, so add this functionality to the driver in a
.set_pauseparam() callback. Essentially just call down to
phylib and let phylib deal with this, .adjust_link()
will respect the setting from phylib.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20240529-gemini-phylib-fixes-v4-3-16487ca4c2fe@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cortina/gemini.c