diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2019-02-22 06:31:41 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-24 15:39:45 -0500 |
commit | 0e29ae0303224535017c0c01aa8b078dd619ebab (patch) | |
tree | fe64841482ca8e5abd8482433483f9f7022696b8 | |
parent | c2f26e8f8788dbd911692d983a3ece83d7d66fbb (diff) |
net: phylink: update mac_config() documentation
A detail for mac_config() had been missed in the documentation for the
method - it is expected that the method will update the MAC to the
settings, rather than completely reprogram the MAC on each call.
Update the documentation for this method for this detail.
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/linux/phylink.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/phylink.h b/include/linux/phylink.h index f57059e4353f..6411c624f63a 100644 --- a/include/linux/phylink.h +++ b/include/linux/phylink.h | |||
@@ -149,6 +149,13 @@ int mac_link_state(struct net_device *ndev, | |||
149 | * configuration word. Nothing is advertised by the MAC. The MAC is | 149 | * configuration word. Nothing is advertised by the MAC. The MAC is |
150 | * responsible for reading the configuration word and configuring | 150 | * responsible for reading the configuration word and configuring |
151 | * itself accordingly. | 151 | * itself accordingly. |
152 | * | ||
153 | * Implementations are expected to update the MAC to reflect the | ||
154 | * requested settings - i.o.w., if nothing has changed between two | ||
155 | * calls, no action is expected. If only flow control settings have | ||
156 | * changed, flow control should be updated *without* taking the link | ||
157 | * down. This "update" behaviour is critical to avoid bouncing the | ||
158 | * link up status. | ||
152 | */ | 159 | */ |
153 | void mac_config(struct net_device *ndev, unsigned int mode, | 160 | void mac_config(struct net_device *ndev, unsigned int mode, |
154 | const struct phylink_link_state *state); | 161 | const struct phylink_link_state *state); |