[Linux-stm32] [CFT PATCH net-next v2] net: phylink: rename mac_link_state() op to mac_pcs_get_state()
Jakub Kicinski
jakub.kicinski at netronome.com
Sun Nov 24 00:15:38 UTC 2019
On Thu, 21 Nov 2019 00:36:22 +0000, Russell King wrote:
> Rename the mac_link_state() method to mac_pcs_get_state() to make it
> clear that it should be returning the MACs PCS current state, which
> is used for inband negotiation rather than just reading back what the
> MAC has been configured for. Update the documentation to explicitly
> mention that this is for inband.
>
> We drop the return value as well; most of phylink doesn't check the
> return value and it is not clear what it should do on error - instead
> arrange for state->link to be false.
>
> Signed-off-by: Russell King <rmk+kernel at armlinux.org.uk>
Applied to net-next now, thank you!
More information about the Linux-stm32
mailing list