Article View: linux.kernel.netdev
Article #26384Re: [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 12:54
Date: Thu, 03 Dec 2026 12:54
18 lines
9464 bytes
9464 bytes
> +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.
Andrew
Technical Details
Message-ID:
<00ad16f9-7460-4473-8073-3bd09fb4ee03@lunn.ch>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!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-376610-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>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!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-376610-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 13:54:14 +0100 Organization: Usenet Network Message-ID: <00ad16f9-7460-4473-8073-3bd09fb4ee03@lunn.ch> References: <20261203050900.32211-1-muhammad.nazim.amirul.nazle.asmade@altera.com> <20261203050900.32211-3-muhammad.nazim.amirul.nazle.asmade@altera.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="2494208"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:6ODRMletDQq2O4fK8jpDk5grr8E= sha256:ZlzkIJQuhAe+yxg1RnwKnHarkngBEo5T2X4/5V+1tcE= sha1:KJx0Fl1RXVP1VzyrBOTXTrw0Bgk= sha256:Y5x4qe0AnKg+gatcv32U7HtE29N4O1Zvi9GYxUvxyMY= 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 0B8D311794D; Thu, 3 Dec 2026 15:54:51 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.299 X-Spam-Status: No, score=-3.299 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, 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 cS34fe0fvhaX; Thu, 3 Dec 2026 15:54:48 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-376610-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id D18DD117942; Thu, 3 Dec 2026 15:54:39 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id DEC082A0AE; Thu, 3 Dec 2026 12:54: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=1796302474; b=iSJGQZkpcHB9KUzEt5w0h/UBsfbp8MrvqBYEKYh8TSu3VDfMo+cKmlWv0Z0HzcBEyJX2 Az3p5Lnjoc7FOvzFj4gj0kAIpBdYqDDuhBY7elsQkf4mMmvERsqiGiIi1PIfbbylbxkj7 wI+mKq29JMYA3Ti0rAzW5JujdHybSCDgzRaJMb5WYWnBj+gwrTd1xwolfPN0LOnym0Ua+ iEF3AYxdIhpgRS/ZWwTjue/e7GGfyxhz0/4lZzRD4NzDuf9scu4YgCv9Go8vOnQaYym4C c0LLhkZKOnwFmbvBw8H7IJfQTAaMRMsntpLehl/UkXei/NIpQc8Y1E5MGWdyfep15dQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796302474; 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=Rd7yx3lK07QFJgypMHz0q06cdkYGFC56cpZOWAEwdiU=; b=QYKGWiBMFy47RyVP8/1j1opEGd8I2VQ8/FJQQ7a5pi2bHZgVK+j2Sn+ApWSB9FErTiW9 icL+Mu8pSCeX2BoJo6DUnpZCHqhnFXw2eszIu6GXXvXSNgPOrcEBF4IdgosfEny31Tf75 3fwBPRnM0urnW+oVFSWK2IN1XUiBi1oeIHn5vxMDzlKYw7BE4u+Dit1r+4MDJf05a3xuZ 0KstwPWVQnAfdqMhTL6zrRdEriUR++JCT/rfaFJnzLHckeEzfhZU0Bd80c0srhvSvFyJs Udt5drwcNjopctR5X5dGqrY2ndBJrmQaQdeIdaqcU1k4HdFK646rGBJIfPyjSt8+lQA== 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=YkSNIjCs; 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 99FB0606A330; Thu, 3 Dec 2026 12:54:34 +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=YkSNIjCs 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=1796302468; b=pNtWQcX2yyjTEO/3IJ0C65dZgugbqtikcI2xRRCq9IBFBysulecUkiYRQS1y5OwhC9gK +v1Ov44qo4yEqnOonG6Dh44qyZO5ht7sb86kWlTPt1Ol+bDVn7p8VvplYYWOFuBLBwOG/ XOqDhXcIlRGys3KaENDmSRxaq5sgaE97oGW7DQDsPe+NEwnJTNoWQvwC1qO4yCNan9ZHy bdagJxLTGqXM9z0bje/xz4j8WzdVtTQEtYTRM692XugpsIjWB8sYk7I+Pc1qzfaNnaf+w OZpfUgSj6nJJI2JsidUyHCdIY//3lg66wiWgkqot5E/FFWP1miCWC037ygoKIh7Lppw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796302468; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=Rd7yx3lK07QFJgypMHz0q06cdkYGFC56cpZOWAEwdiU=; b=OWKrh5P3J/EPp+BhwQGxuPchf4cfQCTTmoVbj1gZezNF6nqS+vY/3uhSnDN3m2yuQB10 w/TCIGYEyysoq2DlqvveiwuVMSZV9FifW7Yk5DwFJUjHESVWEcJYvKYrt6riP9xy15ajZ zo0/umHRrPkxI4eM9/WLzj/xaAUweniMyftzJ4VfoDxG1G00UdjZbEwCGCZ1wkE443l8R kIwV1kVEOSpuhIHxm/UlOPgDWJYjkKnAXFJFlitIEnhtRUpii0kmVgLYJGcrLGzMqN0BV YYdEdRYMGOtviQIwLTUYKtaoOZzqKOUAJ6GLNwfFBdUSBFL02xbOOnMFplUvgLiZavg== 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=YkSNIjCs; 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 5BD1B606A32C; Thu, 3 Dec 2026 12:54:28 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5BD1B606A32C 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=Rd7yx3lK07QFJgypMHz0q06cdkYGFC56cpZOWAEwdiU=; b=YkSNIjCsrm6rCMQb2RXsCaQZBp EsP+jltxjzeMVYvGeOtvHKuRAgURWOUfQlLwkSjLkCmQXFo/tIBZa0nb74YqKlSqAnAYPYXl2POgF iEjyc9MSwA1d2XbMb8LdnooGuDflWP9+IshHfolUuE2+qhKB3h/tvSza+8ZaugGPXhFI=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xZ6KE-0031cS-7q; Thu, 03 Dec 2026 13:54:14 +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: <20261203050900.32211-3-muhammad.nazim.amirul.nazle.asmade@altera.com>