Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp1541522rdb; Wed, 16 Aug 2023 14:57:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGFHRhj9n6sxXXBcVhBSMt3nN8VvnNf+h2hAd+AJIZ3V1esTiC1lp4xjAVpYzimK6gG5fyE X-Received: by 2002:aa7:8892:0:b0:686:bd88:605e with SMTP id z18-20020aa78892000000b00686bd88605emr3131432pfe.11.1692223037401; Wed, 16 Aug 2023 14:57:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692223037; cv=none; d=google.com; s=arc-20160816; b=PZXiVWrEEOemjh9q8PFmNjxHbi5pYyeXce2PhywrsIwM3+9ud5bdE/L6CE3CnWQQnb 3oymyEpVbTij3sI8kQ1YZGbU9by9kZWhP2TKPx72/mhCBN7Xu3J8AX/ac+fGqQgf2lab zp+Y3cFFr+IOC5+uTI8IixzFg2WcYndIMBob7NTwd3FnLEfaEOxZTG9fWvbQpwlxUlm8 3JW3Z4008xZxBtqp+lO76E/Ym9S/7Wh8SPM1etGGLR1+1v5OvMscOa4kRrHkGwGXjmsY 0DWh8C+MxOv7PQwykcBIbb8piS2eBg1YS9SWRjruSYvUgmDmOQ6RDIg+s+KEiVvi7J61 PQYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fPpbmMJdmuQcJ6eLFA3gtjedbUsUdGnwqKeZUZmE18Q=; fh=UEVvRAFK6gmZxZNnJDUC7AmNk/iU78fiWA23OmiDi44=; b=yDx5OUCAMWtIbAuwBBvh/1izI6J5HASMnlkJBkSQDbZrkS1ALL7lLOmC0lmFHyX3JI hGs6GvYUs81WsG7ma58ZDWA0AxzK04q3Tiye0oQuC9xFcXgeaU2nzYiK/x6mzxujUmJr sVE5mYlBRXdRVK+AERfMdScps1CcsvA9QGyQ3fc9r44Yi8uat+jk/HHNEyi2m0MQ0030 1v3XNLmORYgu/5VVjAnL1hhazbaEQ7qCu1v+SRIZptadcRCYzxeXac5Apo281XDQ2pZa plBevs1o3bkPppTKkI+B3guClaQ8AYicjcFlVMthgsTAFi5vdLrGCZ23rotyIJcq1kTl Skqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MJi+oaJL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r20-20020a6560d4000000b0056418c08652si12042106pgv.811.2023.08.16.14.57.01; Wed, 16 Aug 2023 14:57:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MJi+oaJL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344250AbjHPPll (ORCPT + 99 others); Wed, 16 Aug 2023 11:41:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344218AbjHPPlR (ORCPT ); Wed, 16 Aug 2023 11:41:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4FDC26A6; Wed, 16 Aug 2023 08:41:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3F11162399; Wed, 16 Aug 2023 15:41:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB568C433C7; Wed, 16 Aug 2023 15:41:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692200475; bh=4IGcaQBS31O4UxIqmGLC17t6CNsWT5osrD81dv+HBug=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MJi+oaJLG9ba5/GuiSKgGyWL+dRQ7bHYA7rHBjBP1ePi2/EMO71ISETipO7+lEoZW BFvRXLMi620qFyPQmDdnm7XfEsf0D9uqvf0FvvXCM9J5bdR6DtfWJlHhFunWrUpOAU qSxejfllsPVqftTRc+UOpTNblfUL0ih7uubFefBwyfy4yaPS7lsFBWWW3IIUXKMpo4 D+mYOi+/BprmczD09P/FAxJPjCI8BAcDXbWK8/V62mKbKti8zR1YALhkr6z6HJMaAB gg5ojG+XkO39+wFI5wm54Vmj7tn/qx6HWdT2mrDvI6bcELgJDKKpBLqflFZFbRS+CG Mh7LyOcvyRCnQ== From: Jisheng Zhang To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH net-next v4 1/9] net: stmmac: correct RX COE parsing for xgmac Date: Wed, 16 Aug 2023 23:29:18 +0800 Message-Id: <20230816152926.4093-2-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230816152926.4093-1-jszhang@kernel.org> References: <20230816152926.4093-1-jszhang@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org xgmac can support RX COE, but there's no two kinds of COE, I.E type 1 and type 2 COE. Signed-off-by: Jisheng Zhang Acked-by: Alexandre TORGUE --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index 733b5e900817..3d90ca983389 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -7035,7 +7035,7 @@ static int stmmac_hw_init(struct stmmac_priv *priv) if (priv->plat->rx_coe) { priv->hw->rx_csum = priv->plat->rx_coe; dev_info(priv->device, "RX Checksum Offload Engine supported\n"); - if (priv->synopsys_id < DWMAC_CORE_4_00) + if (priv->synopsys_id < DWMAC_CORE_4_00 && !priv->plat->has_xgmac) dev_info(priv->device, "COE Type %d\n", priv->hw->rx_csum); } if (priv->plat->tx_coe) -- 2.40.1