From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101 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== 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== 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 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) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9B332606A32D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch 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 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=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1xZ6S0-0031fp-Kj; Thu, 03 Dec 2026 14:02:16 +0100 Date: Thu, 3 Dec 2026 14:02:16 +0100 From: Andrew Lunn To: muhammad.nazim.amirul.nazle.asmade@altera.com Cc: Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Chevallier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dinh Nguyen , Maxime Coquelin , Alexandre Torgue , 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 Subject: Re: [PATCH net-next v3 2/2] net: stmmac: dwmac-socfpga: Add support for Agilex5 TSN GMAC with FPGA converter 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> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00ad16f9-7460-4473-8073-3bd09fb4ee03@lunn.ch> 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