From patchwork Sun Nov 5 20:57:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13446149 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D8D5FC4167D for ; Sun, 5 Nov 2023 20:58:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/g7wuehU+MYb0rbLVZ2XuzfTeRiYOD0ZOYWu98ENbjU=; b=d9bv9n4GTKtxYB Szt7tp7j8+b2lDa+WilsvfIGJ8r3m72Y1J5SixtQS976qOB2LTRHhCZhUDeQAbqqNPxBlAfIJ6RQI aOOYNREjKfgJ3KVIZUeLEBbjEZzeQTMbVSfxwue7AgiJFOqjoVBXB8JzkvdqSdo2g8BLABVKcYoWp amUrGTIitdFEmCb+FRo453sQPzh4f1cp5jq6nttjgyv3/eP6HFqdLdwGfWOnc1k+uSCXuRXMYRL2k iSHvFJchcYibOH3uawSeC3LiOg0r4xLL9chQmc3KwSE5dqv+M9FpdttbE1802s9ux0W6oEHVaI5e4 QJoEPjsSxr+m3z/FByyA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qzkBd-00FVyU-1n; Sun, 05 Nov 2023 20:57:37 +0000 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qzkBZ-00FVv4-32 for linux-arm-kernel@lists.infradead.org; Sun, 05 Nov 2023 20:57:35 +0000 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-507cee17b00so4869385e87.2 for ; Sun, 05 Nov 2023 12:57:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699217849; x=1699822649; darn=lists.infradead.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=9I/5QuNpGxNYQ0Q3gYhof8mVfyBGfSfCNnlFCET9W5g=; b=WdkpXPFIGFatU+9PkWuVxtSLtApHfMYsRgreO8zhR87kj2toTWtq0GkUZg4guw21C2 PDSyZlfb19mH89NZ5GEbM4wndewACLZOPhTk/96RTqwvcuDfiquOVnwQkht9QATdYLMV pl2Q4xo+1uK9UryYZVVG9AsBVm5ASq1gNiEqyhtm3zfJ/SMs5eH8h+5XxhmtSrvTfrXm IPhIVZEpS9kdJ35Bidv3onB8nK4hRJHdmPZ2IywfmyoSFUjl61e+SQpfdTZCjeWEfv3T 0pBSg0lgUQsBzeCqQLTsgk6lIwnQxMWZp5L/z7l0WLOE2YF08ajGDTFmv7ElDY1nMn+l 3l2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699217849; x=1699822649; 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=9I/5QuNpGxNYQ0Q3gYhof8mVfyBGfSfCNnlFCET9W5g=; b=Zw7fZ89KHMfSiBfgqTekeDakhXfLrY8yjiZ+l+LWr0N99Yz69R5g24OzF7rP2KX7DW rPGPmXktbEoTFtCD3ZrUGCyicfZkvCnjgL+o1eMbGmPLUDUIu5zP8Z195biyAXpb6Wtd m1az2KoWOHLCFZ//BkTaFodtLEZOyrFztfC+jmaUsR2O0tblor9fIjkUNMLVi2TgRdR+ A+7QcqqSEJvjxIacCHOq+GpRSA6ViNqwUTz/N4E1u1YOnARfXDokGFKFnPDqNM71ZFxT wfUD2xIPxaimZIzD+DEoJAxH0dogzivZ6BM4VTXVUAPWkfGMOLbaUPvoGjOn6RdBr23n oArA== X-Gm-Message-State: AOJu0YxLqVbcmyGBSV90nHUcwqTzGd5XcZFiITngaA0nLnCwOkUlDPzX mi6i30vjg4jM3uFxMTz2MUNNrQ== X-Google-Smtp-Source: AGHT+IHEu2ba+AMGz02oEBnNqKcgRmT3tE+uIa+goUWOOC86KvEtoEC6fxxX+YOpDBoyi6G/5ZvToQ== X-Received: by 2002:ac2:5398:0:b0:507:9f69:e8d9 with SMTP id g24-20020ac25398000000b005079f69e8d9mr19751912lfh.49.1699217849468; Sun, 05 Nov 2023 12:57:29 -0800 (PST) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id d12-20020ac24c8c000000b00507c72697d0sm931873lfl.303.2023.11.05.12.57.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 12:57:28 -0800 (PST) From: Linus Walleij Date: Sun, 05 Nov 2023 21:57:24 +0100 Subject: [PATCH net v2 2/4] net: ethernet: cortina: Fix max RX frame define MIME-Version: 1.0 Message-Id: <20231105-gemini-largeframe-fix-v2-2-cd3a5aa6c496@linaro.org> References: <20231105-gemini-largeframe-fix-v2-0-cd3a5aa6c496@linaro.org> In-Reply-To: <20231105-gemini-largeframe-fix-v2-0-cd3a5aa6c496@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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231105_125733_981258_301914DB X-CRM114-Status: GOOD ( 13.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 --- 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 ed9701f8ad9a..b21a94b4ab5c 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 201b4efe2937..24bb989981f2 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