🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #6122

Re: [PATCH net-next v4 1/7] dt-bindings: net: ftgmac100: Make Aspeed compatibles standalone

#6122
From: Conor Dooley
Date: Wed, 21 Oct 2026 16:48
65 lines
11057 bytes
--yHehAASBh68+XO8o
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Oct 20, 2026 at 01:14:41PM -0500, Rob Herring wrote:
> On Tue, Oct 20, 2026 at 07:34:12PM +0800, Jacky Chou wrote:
> > The aspeed,ast2400-mac, aspeed,ast2500-mac, and aspeed,ast2600-mac
> > compatibles are currently only valid when paired with the generic
> > "faraday,ftgmac100" fallback: if a node ever bound through the
> > generic entry alone, ftgmac100_probe() would set
> > rxdes0_edorr_mask/txdes0_edotr_mask to BIT(15) instead of the Aspeed
> > BIT(30), skip Aspeed clock setup, and leave the DMA mask too narrow.
> >=20
> > Make each of them a standalone compatible instead, so none of the
> > Aspeed compatibles require the generic fallback alongside them.
> >=20
> > Signed-off-by: Jacky Chou <jacky_chou@aspeedtech.com>
> >=20
> > ---
> > ftgmac100_of_match[] has had dedicated entries for AST2400, AST2500,
> > and AST2600 since commit 03a2aba50b2c ("net: ftgmac100: List all
> > compatibles"), so there is no known kernel + devicetree combination
> > where a node has actually bound through the generic entry and gotten
> > the wrong EDORR bit. This part is a binding correctness fix, not a fix
> > for an observed failure.
> >=20
> > Note that arch/arm/boot/dts/aspeed/aspeed-g4.dtsi, aspeed-g5.dtsi, and
> > aspeed-g6.dtsi still declare their MAC nodes with the two-string
> > "aspeed,astXXXX-mac", "faraday,ftgmac100" compatible, so this will make
> > dtbs_check warn against those files until the redundant fallback
> > compatible is dropped there as well. That .dtsi change will be sent as
> > a separate series through the Aspeed/arm-soc tree, since dt-bindings
> > changes don't go through that tree.
>=20
> No. This just creates unnecessary warnings even if only temporary.
>=20
> What a driver uses doesn't matter. That can evolve over time, but that=20
> doesn't mean we change the DT schema.

The reason I suggested changing this is because the device used as a
fallback compatible is apparently not actually compatible at all and
were it to be used the device would malfunction.
The original code (from 2016) only worked because it checked the machine
compatible and slightly later on matched on the ftgmac compatible but
then explicitly checked for "ast2400-mac" etc using
of_device_is_compatible().

If you don't want the current stuff deleted, then at the very least it
should be marked deprecated and the standalone aspeed compatible stuff
added alongside it.

--yHehAASBh68+XO8o
Content-Type: application/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCatjs3wAKCRB4tDGHoIJi
0iQVAP0d7Qt2pc38bsMe7twK7g/vPpMDjTATJMUxmCwKoQ8g7gEA4M6fAgsHYsgt
qzMyDs7hUcuLTRYcZT17iHeP2I8w9AU=
=v2Uv
-----END PGP SIGNATURE-----

--yHehAASBh68+XO8o--
Technical Details
Message-ID: <20261021-hedge-fiscally-9d2988325ed0@spud>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-350154-linux-kernel-netdev=dewy.ru
References: <20261020-support_ast2700-v4-0-4d36b40939b3@aspeedtech.com> <20261020-support_ast2700-v4-1-4d36b40939b3@aspeedtech.com> <20261020181441.GA510274-robh@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-350154-linux-kernel-netdev=dewy.ru
From: conor@kernel.org (Conor Dooley)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v4 1/7] dt-bindings: net: ftgmac100: Make Aspeed
 compatibles standalone
Date: Wed, 21 Oct 2026 17:48:31 +0100
Organization: Usenet Network
Message-ID: <20261021-hedge-fiscally-9d2988325ed0@spud>
References: <20261020-support_ast2700-v4-0-4d36b40939b3@aspeedtech.com>
 <20261020-support_ast2700-v4-1-4d36b40939b3@aspeedtech.com>
 <20261020181441.GA510274-robh@kernel.org>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
	protocol="application/pgp-signature"; boundary="yHehAASBh68+XO8o"
Injection-Info: usenet.network;
	logging-data="10393"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Fgt6rIrBhZzupItwoCo2IX8jtV0= sha256:ANM6R5CR9aItNKCWb+pepm6BSstUweYECLDCOQD5dEo=
	sha1:N5mCN6LYmHMB64rZQDoJpF2tj9Y= sha256:UjAtyI6TL/x4y6rmDNPG1BLVNHmZDGytxghq4wfKGHM=
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 412841110A5; Wed, 21 Oct 2026 19:51:28 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	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 (2048-bit key)
	header.d=kernel.org
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 9mZzREfuQWRE;
	Wed, 21 Oct 2026 19:51:25 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-350154-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 7144C11104D; Wed, 21 Oct 2026 19:51:13 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 0EED33C774; Wed, 21 Oct 2026 16:48:44 +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=1792601322;
	b=go3XK+6S5GsW8tllM+sM9HqEJQMFkce028N+sraaDBJTGI6jBfKExixBXR9g+Xkd8fLD
	 5obIZYxyUc8L5+/RokdLFRMJ62BCoguPWBCXFYbpLMwYZqnNAvklYSvhJbxIy9HzbjVQ3
	 LNq5e6OUTBm0+t2F9vrmn0MqAi+HqhdqO1xYieBLYB9s5DklHe34g6mYxBT+/KHaiOsAE
	 tjvm1AhIM3rF/6+9IuDi1Sfrlj5sT8QRg1FIU0iFNRGdDHLKIZ3r5XrcIBZ2sl9K1jBbL
	 Ap5/bpqY7+h0ifZUvvSzuJ2CtcpVB5C/esYlRkMkuNdj7xdygRke8E/liQYgm/dmCpQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792601322;
	h=X-Original-To:Received:Received:DKIM-Signature: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=9Ut8c+AZuSz932GtggMAvxx5Mv2G1n5Wb+a4bDunPnY=;
	b=J8yDvXnKIRz4vumf4F2IPYw4piwdCQOe/zxNKrwv1Y4O1/PJzq8yEgPO3sbF7OWUFenL
	 ZBSX41Bel4wBC01vYHXBlY9XJLalX7TIBPVbjX+GvxsAaiF2UvKTjFIo8+rjbXSs5vkxx
	 +7677JBZ9DmsWJgQBeq6KRbDTfL5yVFN91zzjQX1DSSpWWMAxNtgIkljPB5oSgGH4NHFl
	 Tx8TmnCB50sEfYZ5yHHD0eXKShShIcHGT2p6f+DmSXE58RKCZswJ9LBDlHpSaU6JTmTaD
	 eXPemyd+iRsb+vPT0fZPWVLmLh+iErRqRob/TRsLiOiFOPekgxLJ9IfEarlulN/IjUw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=H7jASWXJ;
	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 97DF3606A323;
	Wed, 21 Oct 2026 16:48:42 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=H7jASWXJ
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1792601316;
	b=Sq5DXw/fHCrvhxuk6ROUikb9uB16pv75FHv4n5yYi/qV86VdagqsLS6+AzehEUvcAl8O
	 hlwbsECqaKCY6XRb0Ft8YmYd075WHnedJVuMY6IG8CD/GU9K7fYhJj76Eu4IitltK6nwn
	 zuba3Xjs1heW0bQCDTFKVMtfWJvFj2hxRWYbAW48id+rK6JJYRU6Tdd4aqFz9zjS2BlnZ
	 lqemERSIL6h/btgmZbsEgc2DQUHqZFqtZHNN5gaAROhwdQpdHFkcNE6D+knGjdy0OpN8U
	 dNH/M6xaVvf9mOOCGwvvFdush9Xy/QTjOJvRJp3hr37GtO9w520C0R9u5U3kgiDADbg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792601316;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=9Ut8c+AZuSz932GtggMAvxx5Mv2G1n5Wb+a4bDunPnY=;
	b=aih+fUPiuoJ2xTFix4rjfIZlVjpnOyYne9b4VWSqce+CPDR4AZMgeALO8Wsf9fPI89sj
	 KGoFsBTC77rp3Jhu97pnSpQUoaOZvPVQhB4yWYTEODXr7933hIoFwk0AB9UjCzLGqZ+kK
	 47GXO3lAdnqBPrKNz1MIX6iI5dk5uaEpXPtUA1y20awiiYciWbBmpiCm7GEx5+fFZ5mnB
	 XXQqqfeywqTPlLgHrPeTxHrlRg+FytwY5GBX6sE/xFZH2VsbbwEdrXxJv4DbjxXuDAv/R
	 p1iViTRujCgl51NhOqKokxzcoYTK8wRpNwl0Ih1/StxJttOQzakSsvQJxRLz1gLsXag==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=H7jASWXJ;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6B19C606A319;
	Wed, 21 Oct 2026 16:48:36 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F9651F000C1;
	Wed, 21 Oct 2026 16:48:32 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792601315;
	bh=9Ut8c+AZuSz932GtggMAvxx5Mv2G1n5Wb+a4bDunPnY=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=H7jASWXJYxQ4hb4kaSVYl1bH/F8jjVE/z66upPmBE9mhvahtR0JcieefGCapbvyFY
	 7CLdjFtkc2a8Yz+7llAD8Hi/Z/G71yo07YRiry/spOeXALQnOU6okOnhrtSYHLQFT/
	 NF+6sn+09NKKaj9aXGVWtf7sJA8b+05sqV5o5QeTbs94HaxEkS1FUS9nQxbjdg5wC/
	 Nua7eacxO792+7UsjysfULdn0Qgme+4zhhali8ZkxBRp0UoM7VcgG2GoUORhtJeeZI
	 ESN+kcfKTeAh92Ap79KCrk6EEIOI00z1+RuTaDMGTW9Ks7/K328EMnURLnisocBLlT
	 N5xMwOCPugFPw==
X-Cc: Jacky Chou <jacky_chou@aspeedtech.com>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Po-Yu Chuang <ratbert@faraday-tech.com>,
	Eric Dumazet <edumazet@kernel.org>,
	Heiner Kallweit <hkallweit1@gmail.com>,
	Russell King <linux@armlinux.org.uk>, netdev@vger.kernel.org,
	devicetree@vger.kernel.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: <20261020181441.GA510274-robh@kernel.org>