🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
3 messages
3 total messages Started by Krzysztof Kozlowski Wed, 04 Nov 2026 10:37
Re: [PATCH net-next v5 1/7] dt-bindings: net: ftgmac100: Make Aspeed compatibles standalone
#10917
Author: Krzysztof Kozlowski
Date: Wed, 04 Nov 2026 10:37
63 lines
10674 bytes
On Wed, Nov 04, 2026 at 01:13:54PM +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.

And device would work or not? If device still works after all these
steps above, then why isn't fallback applicable?

Be explicit, because I have no clue whether Aspeed clock setup is
necessary for device to operate.

> 
> 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.
> ---
>  .../devicetree/bindings/net/faraday,ftgmac100.yaml         | 14 ++++++--------
>  1 file changed, 6 insertions(+), 8 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml b/Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml
> index d14410018bcf..c870dd0bda7b 100644
> --- a/Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml
> +++ b/Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml
> @@ -13,12 +13,10 @@ properties:
>    compatible:
>      oneOf:
>        - const: faraday,ftgmac100

This const goes to your new enum

> -      - items:
> -          - enum:
> -              - aspeed,ast2400-mac
> -              - aspeed,ast2500-mac
> -              - aspeed,ast2600-mac
> -          - const: faraday,ftgmac100
> +      - enum:

here.

Best regards,
Krzysztof
Re: 回覆: [PATCH net-next v5 1/7] dt-bindings: net: ftgmac100: Make Aspeed compatibles standalone
#11665
Author: Krzysztof Kozlowski
Date: Thu, 05 Nov 2026 11:59
34 lines
9644 bytes
On Wed, Nov 04, 2026 at 11:21:57AM +0000, Jacky Chou wrote:
> Hi Krzysztof,
> 
> Thank you for your reply.
> 
> > > 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.
> > 
> > And device would work or not? If device still works after all these steps above,
> > then why isn't fallback applicable?
> > 
> > Be explicit, because I have no clue whether Aspeed clock setup is necessary for
> > device to operate.
> > 
> 
> It is necessary: ftgmac100_setup_clk() enables the MAC's clock, and
> only runs when priv->is_aspeed is true - skipped if a node ever bound
> through the generic entry. Without ftgmac100_setup_clk(), the MAC on

This part is obvious.

> Aspeed platform would be left without a working clock, so it wouldn't
> be able to configure register and TX/RX at all.

So you are saying device will not work? Then make it obvious that clock
is necessary for basic register access.

Best regards,
Krzysztof
Re: 回覆: 回覆: [PATCH net-next v5 1/7] dt-bindings: net: ftgmac100: Make Aspeed compatibles standalone
#12583
Author: Andrew Lunn
Date: Sat, 07 Nov 2026 20:43
39 lines
10683 bytes
On Thu, Nov 05, 2026 at 12:49:28PM +0000, 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.
> > > >
> > > > And device would work or not? If device still works after all these
> > > > steps above, then why isn't fallback applicable?
> > > >
> > > > Be explicit, because I have no clue whether Aspeed clock setup is
> > > > necessary for device to operate.
> > > >
> > >
> > > It is necessary: ftgmac100_setup_clk() enables the MAC's clock, and
> > > only runs when priv->is_aspeed is true - skipped if a node ever bound
> > > through the generic entry. Without ftgmac100_setup_clk(), the MAC on
> > 
> > This part is obvious.
> > 
> > > Aspeed platform would be left without a working clock, so it wouldn't
> > > be able to configure register and TX/RX at all.
> > 
> > So you are saying device will not work? Then make it obvious that clock is
> > necessary for basic register access.
> > 
> 
> Yes, the MAC on Aspeed platform does not work at all. Without the clock, even basic register
> access to the MAC is not possible.

Then for this new compatible you can mark it required.

Maybe test what happens if you mark it required for all aspeed
compatibles. Do an .dts files fail the test tools?

	     Andrew
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