Article View: linux.kernel.netdev
Article #26388Re: [PATCH net-next v3 2/2] net: stmmac: dwmac-socfpga: Add support for Agilex5 TSN GMAC with FPGA converter
From: Andrew Lunn
Date: Thu, 03 Dec 2026 13:02
Date: Thu, 03 Dec 2026 13:02
22 lines
9594 bytes
9594 bytes
On Thu, Dec 03, 2026 at 01:54:14PM +0100, Andrew Lunn wrote:
> > +static void socfpga_agilex5_tsn_gmac_setup_plat_dat(struct socfpga_dwmac *dwmac)
> > +{
> > + struct plat_stmmacenet_data *plat_dat = dwmac->plat_dat;
> > +
> > + socfpga_agilex5_setup_plat_dat(dwmac);
> > +
> > + /* The FPGA GMII-to-RGMII converter is only in the RGMII path. It
> > + * presents GMII to the MAC and adds both RGMII delays, so only
> > + * phy-mode "rgmii-id" describes the board correctly.
> > + */
> > + if (!phy_interface_mode_is_rgmii(plat_dat->phy_interface))
> > + return;
>
> Maybe add another check here. If it is one of the four rgmii but not
> RGMII_ID, you know it will not work, so can return EINVAL.
Ah, probably not needed. It looks like stmmac_pltfr_probe() will
probably do this for you.
Andrew
Technical Details
Message-ID:
<415c0539-db5a-41cf-8766-ad6bc463ab6e@lunn.ch>Path:
mbox-mo1.pugleaf.net!srl.newsdeef.eu.MISMATCH!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376614-linux-kernel-netdev=dewy.ruReferences:
<20261203050900.32211-1-muhammad.nazim.amirul.nazle.asmade@altera.com> <20261203050900.32211-3-muhammad.nazim.amirul.nazle.asmade@altera.com> <00ad16f9-7460-4473-8073-3bd09fb4ee03@lunn.ch>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu.MISMATCH!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376614-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v3 2/2] net: stmmac: dwmac-socfpga: Add support for Agilex5 TSN GMAC with FPGA converter Date: Thu, 3 Dec 2026 14:02:16 +0100 Organization: Usenet Network Message-ID: <415c0539-db5a-41cf-8766-ad6bc463ab6e@lunn.ch> References: <20261203050900.32211-1-muhammad.nazim.amirul.nazle.asmade@altera.com> <20261203050900.32211-3-muhammad.nazim.amirul.nazle.asmade@altera.com> <00ad16f9-7460-4473-8073-3bd09fb4ee03@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="2496375"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:Fp6f28Mj6vv3x0BWB5T+SGVmdpI= sha256:xrTrzv2G/iVmjO6CN74N0Mu1+bG2NwWDy45hrF9zkGM= sha1:GA7C0rS9JTQE7mjOpguZlgX9hDQ= sha256:vFdfuYUelSYGx5AHoQyj07Iyh9Xi1Gj69to43ejWb+s= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id B577E117950; Thu, 3 Dec 2026 16:02:54 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.399 X-Spam-Status: No, score=-3.399 tagged_above=-9999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=lunn.ch X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Vvzgj6N3Hl4z; Thu, 3 Dec 2026 16:02:52 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-376614-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 334BD11794D; Thu, 3 Dec 2026 16:02:35 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 6270C601DE0; Thu, 3 Dec 2026 13:02:34 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796302953; b=4L4o0feT3Ek8e0q+t/1uqfCD4myfmUBZbF5F03A05rooQK5XiS0WqumR1DY6CAkqhK9P W7uzvSJYmr3L7c3YgUxrMyUaQlncFUzPERs8+7zGF0tlumpKfv0nF4aFkBxeQYro36Sw7 Q9UzU1ARVHr5Q5Z/BIw8zyA2TW8oLMXM6TDqbB8oC32c9nKc+o/a989k9mNN3QI2by/OL D8f/yqQpUyFGR09Pp3IgFwQUHbHZJTzgHfKPYtv0s7jGb5D9EiZSEo0oexNrqcqY8+Tpf EN8xK8lIe05dwCjYQwPqWYB8on5Hop37BUU1n0WR76Y3P+T9vvKHlw56Fj7ukZGuOGQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796302953; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date: From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=T9lmPi0wXcC2reb0rUxjoVzfeGKZaM7dhSHAPnEsi/Y=; b=24t1mWkHt/RchZ7Kq1ykKImNJwLCn/R3Qur7u/uqUNBlSyplBM8KZx/t28QhgB/gXjo4 Nd1fNzuAhI5b9E+So6SDurmYVTWM4EYfRDT4h8+WZc0SZBiPWZhIbd0mKKETTegu5c5xV ogA4Nbh1BgXXLLTeJ/R7298E8mdaLTCIrCfSWrBrfRWVolsfuPCyvcKlz9AcfQrKUkpnZ 0qSF0eIfUpE7+IsEXotV0PruuQ6mWM9lRrt9uRoUJ7wOUU56/Q8ATOp2LEWb5mbEzIDXh 4/OOKx0wzPSyWilw3t89pLSzDvVBn8Z6lRQdMwq83slKqTDX0Y1rErC5ml8N/WWDNXg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=Ls+qhPdJ; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C0747606A32F; Thu, 3 Dec 2026 13:02:33 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=Ls+qhPdJ X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796302947; b=2bkQlHKKi9jMVuMZzuQXNEzifi/XvEqxwoKZJLUP8NPsE7GCsY4vQ/cANndbORBuZQV7 nUeyF3HE9bB8AokGOsNeZbiYeoELAVlAO6gZC2fzMWyLauWRFePBjIfyeBYFKBwvEIIqu WJB2wWSyHBNre2GA7JLzZwOAQhFKD7SF0hxPoyPK4iqCrZXN7Ezt6fWTA72Wlgs0GrmHi CWfzXvFlJqRaWD7w4aHQPAJ3iM4AdiZB/wDu7jcIkYezQk3HXGLrMo0gChkagl1HON6is lwmk2r1p5critmIBZYapK/MvLDupozS+p++9yIbeuK409djac3+DFmUEUM6edpoSzoA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796302947; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=T9lmPi0wXcC2reb0rUxjoVzfeGKZaM7dhSHAPnEsi/Y=; b=zpI69tclzpjyNUZqHjGgpzlWzJXbp92AL+BAuhv3I+VO7ToEWckQxp46yKw/vBlBaftN 4PwcSkjibxxxlYBy3DVPJlWiSngOCfABR4LsEVDhhgEUDzrcoL00Ke6qRBdwuoMr+0rU6 +luYxwaWajY9fjgC0apv1ZaFN0Cq9PPNPYZmT5/QOcDuQq5SxHw9jt8tnwpzYTF7+VRyU BCZps6JlxolLVCa24gF/8ywDpdZCDOk0vckl+YSwUF8YBO4pXJDmpinyo1YZy8+Y+eNJj Xd02I3pC7hXlxncN8rwkcLweq+3EWTEUyQK/ThIFGP0+e1U6Hfu/biGGUuXoDyI6gwQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=Ls+qhPdJ; arc=none smtp.remote-ip=156.67.10.101 X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9B332606A32D; Thu, 3 Dec 2026 13:02:27 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9B332606A32D X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=T9lmPi0wXcC2reb0rUxjoVzfeGKZaM7dhSHAPnEsi/Y=; b=Ls+qhPdJ8yNrQtFFNHl9TxT0Zk SvT1lTNHUuIv68xG7i/BVIfYDs4iiQlIG07CfouTXE1ed8WbzEsUkoPaAoZm33GwNJEo07hwRl1e6 p5d4oZTqPICcdB9d1FwwWMZQxshGQKzhyXhkM4Hh60nlRbpkLdt8wo++QFpwskTu/9gM=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xZ6S0-0031fp-Kj; Thu, 03 Dec 2026 14:02:16 +0100 X-Cc: Andrew Lunn <andrew+netdev@lunn.ch>, "David S . Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Maxime Chevallier <maxime.chevallier@bootlin.com>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, Dinh Nguyen <dinguyen@kernel.org>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <00ad16f9-7460-4473-8073-3bd09fb4ee03@lunn.ch>