net: dsa: sja1105: enable the TTEthernet engine on SJA1110
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 11 Jun 2021 19:01:22 +0000 (22:01 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Jun 2021 19:45:38 +0000 (12:45 -0700)
As opposed to SJA1105 where there are parts with TTEthernet and parts
without, in SJA1110 all parts support it, but it must be enabled in the
static config. So enable it unconditionally. We use it for the tc-taprio
and tc-gate offload.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105_main.c

index 3b03186..de132a7 100644 (file)
@@ -673,6 +673,8 @@ static int sja1105_init_general_params(struct sja1105_private *priv)
                 */
                .tpid = ETH_P_SJA1105,
                .tpid2 = ETH_P_SJA1105,
+               /* Enable the TTEthernet engine on SJA1110 */
+               .tte_en = true,
        };
        struct dsa_switch *ds = priv->ds;
        struct sja1105_table *table;