From patchwork Sat Nov 4 12:43:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13445512 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 19C6BC4167B for ; Sat, 4 Nov 2023 12:44:23 +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=sB4c7iE3smcTaXdaB/TlBdt3BCZR6z+NDw1h4eV+doI=; b=fFdEgmCc4+6zdu 3sB4uW9wFYSR2mG5nSjgm3Gt4HJf0jCxkuGCXKF4y7unxvj0NJuwUmVaOE+74Qb7i0YbwTEkdJPwB 26Jf79WjNN8z7IxIsvjAgb42FlairhvKdAUmWq7eh73qeafCaRuDR5CYlPbcDES6wASbvTyhiNKFz 4ri7VhuRgjOZe5P5A4SR3r1BcywX7fT8OfUXpAnPJjw2LUWayuzjWeOzc13OEcTDennVFsvqPElYB rZX/3KGk9U26xhztS/CVIK2e9trHGQR2A2CAFvbpDF82T4c/7vE/0lt3i8OISWeQbOytmjGRdE7Js BM3K1dS0MYp2OA5YMt7g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qzG0M-00DPHr-2n; Sat, 04 Nov 2023 12:43:58 +0000 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qzG0H-00DPFi-2k for linux-arm-kernel@lists.infradead.org; Sat, 04 Nov 2023 12:43:55 +0000 Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-507973f3b65so3867534e87.3 for ; Sat, 04 Nov 2023 05:43:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699101832; x=1699706632; 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=QWgOFAkaCrL22TdDDJiVpTuZM0XAGRWs9ieW0NKW7II=; b=VNh6to/O3HYNFMGF7yncULpFVq2uVuzjmPMLUi870wMejkKpbgzHVa9Doafzq9pUJK L6TeuR6h77r7gU9laKib76RBVxO66msgrw3mgV66vOdPVwnaXabLCMSj0FWnlxP6bfKA uQECJnVb7UhrSpM6zIgOzjxdCjXiM5Ca+3J+5PBKUzDGE2isUqPtaXdLtLu2LEoT7c5t 3jdd888h9TtoIZvjlihJBY2k77Wu+5gOalUGqQYVU0rtoF8LsqMPuYdVg8R4vGOFSeaw SdedvWbyTXD2ARQRaLk10E8NIY6/gfTJBsUXLH3JeZadVg1C3o76ixmEpF/93Xu4brG3 Xtlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699101832; x=1699706632; 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=QWgOFAkaCrL22TdDDJiVpTuZM0XAGRWs9ieW0NKW7II=; b=VUS1GyGkAOICguK0aX5JFp28pfMS+8t53wpzKde4WZn5P0c2ljTesr7IhAso0xD6l7 UQQx2EleLOmWtt8htCIYzlGTWj3XplPjATuJODUXQAReFPB3J7akvFpcDzRW94n0BxF+ zHKBECrB8fzgECu9vcp0zerE4FtXJyCVLOZySxY80GhbzcCbDC91H9aWL2y6DQ4IUEbZ hFKEd5d9EJvL6vg3KuyPLUJZ6LP128lCGxXaf2TyQLewXNmYLwnM8fkCdo/a1jxgRWpg bhTNo5mWDSl6vwhP2bZkLfUkxt+B2SK4kqG8n/YQEpIWnHTbwNhO4x5WZS8q2I0fWi6h ETIw== X-Gm-Message-State: AOJu0Yyev1RP68SEz7GxMNRlbVphP5TRnLJ3SLyUTYYvYd6XbAUiMDD9 yvsXBF8OjY3UinnpG/OhAyl0LOXr8juXCrUtnCI= X-Google-Smtp-Source: AGHT+IE/D76DP6LP5S/bC2ZUouN5nx6tvXDeDM1odIxhJnsb2wJCBGqDcoLyl8FiiBhU1HViFRqPDQ== X-Received: by 2002:a05:6512:3196:b0:4fa:f96c:745f with SMTP id i22-20020a056512319600b004faf96c745fmr23906142lfe.38.1699101831782; Sat, 04 Nov 2023 05:43:51 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id u22-20020ac24c36000000b005093312f66fsm496100lfq.124.2023.11.04.05.43.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Nov 2023 05:43:51 -0700 (PDT) From: Linus Walleij Date: Sat, 04 Nov 2023 13:43:49 +0100 Subject: [PATCH net 2/4] net: ethernet: cortina: Fix max RX frame define MIME-Version: 1.0 Message-Id: <20231104-gemini-largeframe-fix-v1-2-9c5513f22f33@linaro.org> References: <20231104-gemini-largeframe-fix-v1-0-9c5513f22f33@linaro.org> In-Reply-To: <20231104-gemini-largeframe-fix-v1-0-9c5513f22f33@linaro.org> To: Hans Ulli Kroll , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= , Vladimir Oltean 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-20231104_054353_899650_8B6B8DCA X-CRM114-Status: GOOD ( 13.89 ) 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") Signed-off-by: Linus Walleij Reviewed-by: Andrew Lunn --- 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 e12d14359133..fd08f098850b 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 d7101bfcb4a0..e4b9049b6400 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