From patchwork Thu Nov 9 09:03:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 163309 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b129:0:b0:403:3b70:6f57 with SMTP id q9csp306795vqs; Thu, 9 Nov 2023 01:03:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IET4rb4+Pl7xVviPAs3dEVBB7Sq4+HbMr7Rm8z6LzAqdtli5zN45BWlzytB4qhvBiFs7Y+H X-Received: by 2002:a9d:76d7:0:b0:6bd:a47:7bb6 with SMTP id p23-20020a9d76d7000000b006bd0a477bb6mr4526454otl.14.1699520632611; Thu, 09 Nov 2023 01:03:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699520632; cv=none; d=google.com; s=arc-20160816; b=aPQ8N895ObSn2CqreJjHkjdvc/wHemAR7sUGUeHvJcbc50mNtD6j/oHz2O2ZY9qgGA xcrTa+ZajhQHLpnJNhlXaAUtNvfccGIbbTcxXWWDOHaPa9iwTiYgu/licXW60Y7PzpF6 hCO4oLbb9HfMyBwJqbuw2pylJ5rBe8d+TptH79OB69UONLk0g8Oy9XjUs786UNVACsdh e6fLz4GdAVXrTtsgH7M8zuqRczN2d98FEUkqoWMN2QOYZw0EfWUUwdNKJdG6qpvEXW1J uAzSUOyXztPgJEJrzb2mNpr4VKBcTk/OkFdqTNAnR10Ob4P/efCDDo9UhfB7OA+phgko u+3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=vzJIeWNq2FEaPyhEpEI6+O7cf3g+sTgw9uPY1dLEPEs=; fh=G3jVr66/sTBxblB4VkyKBP17P5NL/3UjRtmVOzWFD40=; b=Gkj37odO1zQgOWzHU9YgGGQAWNSwW8VcxfNTQ99lC9xuG2J16OuR25hq/oyeGEnFZE Zzn4zIwVRVDmBKLTLfKCLXVTBjC7X5onHpVl4FHyU5//YUNC/qu4FfJd365mKP7fBY6C HsPepIehOlBIT3X/HfDZbK/3YWiwEnTErol9XCc1q8hFEu8nFxZ3Rj/2DVSHSW6Lh8iL wBtKQGHYBOIUl9BICz9pynVMe+J/yXTbAtxJya2KCCAgPQYbNs340E7YCAM53GLxymtq Mm7LMIDNtoM/scOkc6V2xLhvB7rGXS0wbnCtMijliIgrq0BXYLGL4JL7/Eu3Sb9B0ETa XKMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mYpbZa3v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id bz34-20020a056a02062200b005aaf19c3981si7698756pgb.329.2023.11.09.01.03.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Nov 2023 01:03:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mYpbZa3v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 16FDE81E5D2C; Thu, 9 Nov 2023 01:03:49 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234123AbjKIJD3 (ORCPT + 32 others); Thu, 9 Nov 2023 04:03:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234116AbjKIJDV (ORCPT ); Thu, 9 Nov 2023 04:03:21 -0500 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3ACA211B for ; Thu, 9 Nov 2023 01:03:16 -0800 (PST) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2c503da4fd6so6898721fa.1 for ; Thu, 09 Nov 2023 01:03:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699520595; x=1700125395; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=vzJIeWNq2FEaPyhEpEI6+O7cf3g+sTgw9uPY1dLEPEs=; b=mYpbZa3vIe9EoNguaotcW/iuSHQ5nJBhgru7WF6umoDpHN8iwGyMUVIzZqeN7eSC3l bUROfxyTyv02qOd4rGh8NC+KC69rP6AUrqfKFV3nAS4z7hQulpEAySIvj2YDKQls4mlI AojGS0iRcvbzcwYkXhI/m40+2CgdjYHgCcJQBpDpurkLQGVCPZCZc5IdPJg0d+t1y9f0 RgujTfifKDufDowdBz6SUtKczS1KGL8L7QqF9lfjQH1xFJmd36RoajCR9HwiPFBrc8ue NKBDQnl6UlkdtCu2HTrURXahxmyMNTRihtRx+iwZ2j0MGLkytjexc5aCbi/1wx1Okb92 12Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699520595; x=1700125395; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vzJIeWNq2FEaPyhEpEI6+O7cf3g+sTgw9uPY1dLEPEs=; b=R698cSV98WV7GTDHgBpoNiZNgWZf4Jh7JevMPp5EovIToTJ486D2wojmHcSxtwNqSy drlCqX2jrRGreNThGDutnbipkhw2WWEC+4h38XMI8sONwNkmyxMlxV9E9nOak7AWg9+s lDayVuL5uOdWda/t7tjb4qF1SRmX9pJdzwKDv2GJCMxWdNkcaOaDilW7xgNx7B0UBpLZ k5EEiNX+iN7Twj2v/qhFe6XSO6k+KVVtFmnePtrPLtlIvQjB95VVEuZ5eD9BTPbPP6np Q7EQH+18gnlHg1fzE2+3PfgpQmYqmj+ihdcLek7gtY4lSpRyIbOfFfha/4OmHS7BYDxA +fEQ== X-Gm-Message-State: AOJu0Yx6Ryn3AYh7arWyrLH1Nyxm/ClZDXmnlnzLeX7nQLxvyGIOXi27 VB4m3gY0QDpn4fa1otIFrLi4TA== X-Received: by 2002:a2e:9e53:0:b0:2c5:cac:e9a3 with SMTP id g19-20020a2e9e53000000b002c50cace9a3mr3404465ljk.52.1699520594884; Thu, 09 Nov 2023 01:03:14 -0800 (PST) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id h19-20020a05651c159300b002bbacc6c523sm2212383ljq.49.2023.11.09.01.03.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Nov 2023 01:03:14 -0800 (PST) From: Linus Walleij Date: Thu, 09 Nov 2023 10:03:12 +0100 Subject: [PATCH net v4 1/3] net: ethernet: cortina: Fix max RX frame define MIME-Version: 1.0 Message-Id: <20231109-gemini-largeframe-fix-v4-1-6e611528db08@linaro.org> References: <20231109-gemini-largeframe-fix-v4-0-6e611528db08@linaro.org> In-Reply-To: <20231109-gemini-largeframe-fix-v4-0-6e611528db08@linaro.org> To: Hans Ulli Kroll , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= , Vladimir Oltean , Andrew Lunn Cc: linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Linus Walleij X-Mailer: b4 0.12.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 09 Nov 2023 01:03:49 -0800 (PST) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782076546871121200 X-GMAIL-MSGID: 1782076546871121200 Enumerator 3 is 1548 bytes according to the datasheet. Not 1542. Fixes: 4d5ae32f5e1e ("net: ethernet: Add a driver for Gemini gigabit ethernet") Reviewed-by: Andrew Lunn Signed-off-by: Linus Walleij Reviewed-by: Vladimir Oltean --- drivers/net/ethernet/cortina/gemini.c | 4 ++-- drivers/net/ethernet/cortina/gemini.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/cortina/gemini.c b/drivers/net/ethernet/cortina/gemini.c index a8b9d1a3e4d5..5bdd1b252840 100644 --- a/drivers/net/ethernet/cortina/gemini.c +++ b/drivers/net/ethernet/cortina/gemini.c @@ -432,8 +432,8 @@ static const struct gmac_max_framelen gmac_maxlens[] = { .val = CONFIG0_MAXLEN_1536, }, { - .max_l3_len = 1542, - .val = CONFIG0_MAXLEN_1542, + .max_l3_len = 1548, + .val = CONFIG0_MAXLEN_1548, }, { .max_l3_len = 9212, diff --git a/drivers/net/ethernet/cortina/gemini.h b/drivers/net/ethernet/cortina/gemini.h index 9fdf77d5eb37..99efb1155743 100644 --- a/drivers/net/ethernet/cortina/gemini.h +++ b/drivers/net/ethernet/cortina/gemini.h @@ -787,7 +787,7 @@ union gmac_config0 { #define CONFIG0_MAXLEN_1536 0 #define CONFIG0_MAXLEN_1518 1 #define CONFIG0_MAXLEN_1522 2 -#define CONFIG0_MAXLEN_1542 3 +#define CONFIG0_MAXLEN_1548 3 #define CONFIG0_MAXLEN_9k 4 /* 9212 */ #define CONFIG0_MAXLEN_10k 5 /* 10236 */ #define CONFIG0_MAXLEN_1518__6 6