summaryrefslogtreecommitdiff
path: root/net/tipc
diff options
context:
space:
mode:
authorRené van Dorst <opensource@vdorst.com>2019-07-27 11:40:11 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-08-09 17:53:34 +0200
commite4140af99280223e24becd8fb3690444f7db42db (patch)
tree5048b43d83c9cb95b55dd698e79e3c336ee31ad7 /net/tipc
parentf876b38abc0a0e6892fc2976b5b5217b2b64df4d (diff)
net: phylink: Fix flow control for fixed-link
[ Upstream commit 8aace4f3eba2a3ceb431e18683ea0e1ecbade5cd ] In phylink_parse_fixedlink() the pl->link_config.advertising bits are AND with pl->supported, pl->supported is zeroed and only the speed/duplex modes and MII bits are set. So pl->link_config.advertising always loses the flow control/pause bits. By setting Pause and Asym_Pause bits in pl->supported, the flow control work again when devicetree "pause" is set in fixes-link node and the MAC advertise that is supports pause. Results with this patch. Legend: - DT = 'Pause' is set in the fixed-link in devicetree. - validate() = ‘Yes’ means phylink_set(mask, Pause) is set in the validate(). - flow = results reported my link is Up line. +-----+------------+-------+ | DT | validate() | flow | +-----+------------+-------+ | Yes | Yes | rx/tx | | No | Yes | off | | Yes | No | off | +-----+------------+-------+ Fixes: 9525ae83959b ("phylink: add phylink infrastructure") Signed-off-by: René van Dorst <opensource@vdorst.com> Acked-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions