Re: [net] net: dsa: felix: convert TAS link speed based on phylink speed

From: David Miller
Date: Thu Sep 24 2020 - 23:02:31 EST


From: Xiaoliang Yang <xiaoliang.yang_1@xxxxxxx>
Date: Thu, 24 Sep 2020 09:57:46 +0800

> state->speed holds a value of 10, 100, 1000 or 2500, but
> QSYS_TAG_CONFIG_LINK_SPEED expects a value of 0, 1, 2, 3. So convert the
> speed to a proper value.
>
> Fixes: de143c0e274b ("net: dsa: felix: Configure Time-Aware Scheduler via taprio offload")
> Signed-off-by: Xiaoliang Yang <xiaoliang.yang_1@xxxxxxx>
> Reviewed-by: Vladimir Oltean <vladimir.oltean@xxxxxxx>

Applied and queued up for -stable.