🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
2 messages
2 total messages Started by Rob Herring Tue, 20 Oct 2026 18:14
Re: [PATCH net-next v4 1/7] dt-bindings: net: ftgmac100: Make Aspeed compatibles standalone
#5620
Author: Rob Herring
Date: Tue, 20 Oct 2026 18:14
36 lines
8500 bytes
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.
> 
> Make each of them a standalone compatible instead, so none of the
> Aspeed compatibles require the generic fallback alongside them.
> 
> Signed-off-by: Jacky Chou <jacky_chou@aspeedtech.com>
> 
> ---
> 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.
> 
> 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.

No. This just creates unnecessary warnings even if only temporary.

What a driver uses doesn't matter. That can evolve over time, but that 
doesn't mean we change the DT schema.

Rob
Re: [PATCH net-next v4 1/7] dt-bindings: net: ftgmac100: Make Aspeed compatibles standalone
#6122
Author: 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--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads