From patchwork Tue Nov 7 09:54:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13448241 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 E1133C4167B for ; Tue, 7 Nov 2023 09:55:04 +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=TMXmHTFdioozI2 3B7K1/Z3N6LCZxsxlBSK88oLhR2ouRGnD6u0ZgvMKgQ9P6XZ1GG5UNuDu1eeBPgVv+6i21dmwJnds wDXq3+Qay4oWXbmnaUI9GBtsNez3sMYd4GUXiOoTc4SghsJASeA7kL20a00SmPod6Mm1TqZ1KKPmg c+oE5sZcOgOzFSRtKxA7J6UK0ttLJYB+PB8PnyZ2PE3va6dQeNKfrkUcod7SNXI4B9lpXxr1REVYj ab4tNTIKwk5ousJkpVxoLSelmjbXQAgpfV9Q/UWipAiAQYp6GOgQUwrZ7PdLYQyo7g2v1ruvT+jgO euQIK5XYH+Inb3fexaXA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r0InC-000yBa-1i; Tue, 07 Nov 2023 09:54:42 +0000 Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r0In9-000y8F-0B for linux-arm-kernel@lists.infradead.org; Tue, 07 Nov 2023 09:54:40 +0000 Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2c594196344so72719591fa.3 for ; Tue, 07 Nov 2023 01:54:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699350875; x=1699955675; 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=MHK24KsvXsCmThgIzGqvCNhabqkNBjQNgw4o2ogeWoPAv6jU9lLPqRReETLt268Kvc nbvRz8pOpAdnp7DAcNiR4kOy6cYizdRP0NqLSjk3HDUDGo4IZl8zwYsvX36tE3WPBFtT Q4xy2MEd/n+qlkVdHS5rpIL/fI0u7g1/GIEb8bixyeNYh4Pkd25OP5uThuV+++Lx+dFm IvxDkqPul4zIPNoBmjU8ibyUddxwwgOObYRAtbShNVuMl4x3KuRFvEFjhvzsoVaIIM/1 cFaza30druaDoQXieIWI2+t58n6ehrzX4B9Qjn8CDmx7HTdxgbuYmyh+LEc0uHCFO5U8 li/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699350875; x=1699955675; 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=fF94uxhVjxuWMIwpalhH2y2BuNexB3+k8QlKFPCaQzac8vBXPYQxHqwXhRmOfgz3yD jvC5QHC0td17caGzLSQ5Ado374pJdvJqz2fyfFhOBg+2CndkuCnAPVSjKJ3zmKP0RHHO 7IFcLUUoHuV49F+U68VUItVdj2Vw6Wi6AWAWZL9iVsJAY9QsJW8sziJ6JJGuTjobbtBR HRmf1UHtig1N4Sn0gtLKV7819nFV139GbRQxyWsn6Tloviv6zrhA5gY4swx0LYXivGDS Tr+C2WEM0ByD4ivq1E0lbadZySFicdPd/FFXYgViFUVl6BXDqMJzEKpcJ+nTXIC80vVY csww== X-Gm-Message-State: AOJu0YwW1FdAD6Mas8KBI/7zT3/R2DFztIBxo+Md72hdfFoF3yPB5TVn ulLiITpr4zzszk82n0+Db//PxFRXJswDWWaJrXk= X-Google-Smtp-Source: AGHT+IGlT4InGGRd4uD9B/kQKUczRMijoKcGtyPoFdZviLpDAoD/so75+M9LyQ+ioSY6DkDZzqHtaQ== X-Received: by 2002:a05:6512:358e:b0:505:6cc7:e0f7 with SMTP id m14-20020a056512358e00b005056cc7e0f7mr20581023lfr.44.1699350875084; Tue, 07 Nov 2023 01:54:35 -0800 (PST) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id m25-20020ac24ad9000000b005091314185asm296356lfp.285.2023.11.07.01.54.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Nov 2023 01:54:34 -0800 (PST) From: Linus Walleij Date: Tue, 07 Nov 2023 10:54:27 +0100 Subject: [PATCH net v3 2/4] net: ethernet: cortina: Fix max RX frame define MIME-Version: 1.0 Message-Id: <20231107-gemini-largeframe-fix-v3-2-e3803c080b75@linaro.org> References: <20231107-gemini-largeframe-fix-v3-0-e3803c080b75@linaro.org> In-Reply-To: <20231107-gemini-largeframe-fix-v3-0-e3803c080b75@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-20231107_015439_092073_358B04E3 X-CRM114-Status: GOOD ( 13.85 ) 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