On 9/10/19 8:41 AM, Robert Beckett wrote:
> Configure autoneg for phy connected CPU ports.
> This allows us to use autoneg between the CPU port's phy and the link
> partner's phy.
> This enables us to negoatiate pause frame transmission to prioritise
> packet delivery over throughput.

s/autoneg/auto-negotiation/
s/phy/PHY/
s/negoatiate/negotiate/
s/prioritise/prioritize/ (maybe the latter is just my US english
dictionary tripping up)

Also the subject should be net: dsa: Configure auto-negotiation for CPU
port to match previous submissions done to that file.

Fixing up that code path sounds reasonable, but are you not hitting the
PHYLINK code path instead?

> 
> Signed-off-by: Robert Beckett <bob.beck...@collabora.com>
> ---
>  net/dsa/port.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/net/dsa/port.c b/net/dsa/port.c
> index f071acf2842b..1b6832eac2c5 100644
> --- a/net/dsa/port.c
> +++ b/net/dsa/port.c
> @@ -538,10 +538,20 @@ static int dsa_port_setup_phy_of(struct dsa_port *dp, 
> bool enable)
>               return PTR_ERR(phydev);
>  
>       if (enable) {
> +             phydev->supported = PHY_GBIT_FEATURES | SUPPORTED_MII |
> +                                 SUPPORTED_AUI | SUPPORTED_FIBRE |
> +                                 SUPPORTED_BNC | SUPPORTED_Pause |
> +                                 SUPPORTED_Asym_Pause;
> +             phydev->advertising = phydev->supported;
> +
>               err = genphy_config_init(phydev);
>               if (err < 0)
>                       goto err_put_dev;
>  
> +             err = genphy_config_aneg(phydev);
> +             if (err < 0)
> +                     goto err_put_dev;
> +
>               err = genphy_resume(phydev);
>               if (err < 0)
>                       goto err_put_dev;
> 


-- 
Florian

Reply via email to