From patchwork Fri Jun 11 19:01:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 12316421 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F543C48BE5 for ; Fri, 11 Jun 2021 19:02:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 658FF613CD for ; Fri, 11 Jun 2021 19:02:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231514AbhFKTEp (ORCPT ); Fri, 11 Jun 2021 15:04:45 -0400 Received: from mail-ej1-f46.google.com ([209.85.218.46]:46700 "EHLO mail-ej1-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231173AbhFKTEn (ORCPT ); Fri, 11 Jun 2021 15:04:43 -0400 Received: by mail-ej1-f46.google.com with SMTP id he7so5965671ejc.13 for ; Fri, 11 Jun 2021 12:02:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jn3EImVRxWyaYVvh92Ahskv7sahljZi63Smtg7XTVHk=; b=bTEUoFx/wCrKm2Gl4XxtM+3Ag5fFBKhe/K6oi8JKDt1gD6ot9VMK0qTZGyJjm8pfyh sz333XDsnYRylgWTe/Zsw2MHZFYTP1c8Ukghx0acOwS8vN5TSFJ0CmdFY9gw0+B60qxS WQlRUzHAGrlYyyIeWQOVNTz1E+B6C60bzG6EkzscWs8bf72vbB82xYGHxOhTOcMKyDz7 6Cd0jcc0hLetLzsJgvFflq8VovaZMP5LqwQXFn/XpOkjqwGeR1ElzTIIHqdw/fQDwCZA KaY75Tn04jYE3XSIzD1l0qJccIxszb5f356PNG99VSmSxIG9XtdAx6qtEPiAVpsHmiuj 7kIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jn3EImVRxWyaYVvh92Ahskv7sahljZi63Smtg7XTVHk=; b=i4srKFEMzAUGb/qZ5or4KK5Rn76segu5DlCsvCylM//i/OyJrWvdGs4JuP4KtHN+vy OY+H6arnCsiD3ieCxv+hiczNnCT4vbg8efCELIlJYAP01ffTQph6qHypwQ1fZ+mpffO3 xxtbHQAbZ5590lcrFKAh0WsO9crZk1xPLZaY2vaLYRRsIIKmd/RotxF1j2k0CSzp4paC sFrpXjRrLyRzoPDQffDraqcJ2XUiCxtctu2IL75GvkCj0BkWv7T+uH5g6Rv9TQ7ioxlW WAplSn+13A2ZhOR+VtkcTaSFbGCd5lY3LC5t6NgclT0qtp3J5/rCA5OOmqziUFn5ncsN jwaw== X-Gm-Message-State: AOAM531FL+hJvs0AQqRtJGyqT0sFTb+ktRh83ezfomMDMYZ+ihM8hudl Ah/oXOk8o4KFve3vIQjra8s= X-Google-Smtp-Source: ABdhPJwlbdNx/Z+7K844KY1lqRrKG11edf4al88dNRW8YkEInQ9425xVLESjvM0mbuGGCRpdIc5Vdw== X-Received: by 2002:a17:906:fcbb:: with SMTP id qw27mr4890733ejb.478.1623438104829; Fri, 11 Jun 2021 12:01:44 -0700 (PDT) Received: from localhost.localdomain ([188.26.52.84]) by smtp.gmail.com with ESMTPSA id c19sm2922016edw.10.2021.06.11.12.01.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jun 2021 12:01:44 -0700 (PDT) From: Vladimir Oltean To: Jakub Kicinski , "David S. Miller" , netdev@vger.kernel.org Cc: Florian Fainelli , Andrew Lunn , Vivien Didelot , Richard Cochran , Vladimir Oltean Subject: [PATCH v3 net-next 01/10] net: dsa: sja1105: enable the TTEthernet engine on SJA1110 Date: Fri, 11 Jun 2021 22:01:22 +0300 Message-Id: <20210611190131.2362911-2-olteanv@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210611190131.2362911-1-olteanv@gmail.com> References: <20210611190131.2362911-1-olteanv@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org From: Vladimir Oltean 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 --- v2->v3: none v1->v2: none drivers/net/dsa/sja1105/sja1105_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/dsa/sja1105/sja1105_main.c b/drivers/net/dsa/sja1105/sja1105_main.c index 3b031864ad74..de132a7a4a7a 100644 --- a/drivers/net/dsa/sja1105/sja1105_main.c +++ b/drivers/net/dsa/sja1105/sja1105_main.c @@ -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;