[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190727.142836.359766029975927221.davem@davemloft.net>
Date: Sat, 27 Jul 2019 14:28:36 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: opensource@...rst.com
Cc: linux@...linux.org.uk, andrew@...n.ch, f.fainelli@...il.com,
hkallweit1@...il.com, netdev@...r.kernel.org
Subject: Re: [PATCH net] net: phylink: Fix flow control for fixed-link
From: René van Dorst <opensource@...rst.com>
Date: Sat, 27 Jul 2019 11:40:11 +0200
> 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@...rst.com>
Applied and queued up for -stable, thanks.
Powered by blists - more mailing lists