🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #12583

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

#12583
From: 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
Technical Details
Message-ID: <f44dead2-c5cb-4684-ac7d-2f4409af1ab3@lunn.ch>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-358520-linux-kernel-netdev=dewy.ru
References: <20261104-support_ast2700-v5-0-44057f4dde75@aspeedtech.com> <20261104-support_ast2700-v5-1-44057f4dde75@aspeedtech.com> <20261104-helpful-courageous-hedgehog-f05bbf@quoll> <SEYPR06MB513412E04F4F0AE8ADE0375E9D682@SEYPR06MB5134.apcprd06.prod.outlook.com> <20261105-ambrosial-natural-ibis-7cecb6@quoll> <SI2PR06MB51406DA90F387ED0C64073869D772@SI2PR06MB5140.apcprd06.prod.outlook.com>

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-358520-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: 回覆: 回覆: [PATCH net-next v5 1/7] dt-bindings: net:
 ftgmac100: Make Aspeed compatibles standalone
Date: Sat, 7 Nov 2026 21:43:01 +0100
Organization: Usenet Network
Message-ID: <f44dead2-c5cb-4684-ac7d-2f4409af1ab3@lunn.ch>
References: <20261104-support_ast2700-v5-0-44057f4dde75@aspeedtech.com>
 <20261104-support_ast2700-v5-1-44057f4dde75@aspeedtech.com>
 <20261104-helpful-courageous-hedgehog-f05bbf@quoll>
 <SEYPR06MB513412E04F4F0AE8ADE0375E9D682@SEYPR06MB5134.apcprd06.prod.outlook.com>
 <20261105-ambrosial-natural-ibis-7cecb6@quoll>
 <SI2PR06MB51406DA90F387ED0C64073869D772@SI2PR06MB5140.apcprd06.prod.outlook.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="4189668"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:F+MKHZJ5KVo3NDkHLHmKp9vZ4kI= sha256:pHxW3twriWjm9NkJasQ6ary28/TRy7hVggytsQmRFbc=
	sha1:9e9KO8vitl8WgXBhKjTMigQcrU4= sha256:S9QZG/U+1AjlEo9j+Th79Xg5ZN0AS23dSUSQZBgJhK0=
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 8846C1134B0; Sat,  7 Nov 2026 23:46:00 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.951
X-Spam-Status: No, score=-1.951 tagged_above=-9999 required=6.31
	tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, 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 E2Uqf4ncEK4g;
	Sat,  7 Nov 2026 23:45:52 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-358520-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 E6A14113489; Sat,  7 Nov 2026 23:45:41 +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 927F038C0C; Sat,  7 Nov 2026 20:43:36 +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=1794084216;
	b=YTG4iWNZro20N/8Xak6Vx14fl9v4MIh3SGueHQRicGONYHlQe9KLnr4UN2e9EAE+rfoi
	 JAh8sINX0lZZGWb9X9ftGFzPWjNDdJlPnjLA25sm8n96vOa3hjc1uaSvv34clxPxvt5JY
	 XkG66GvAjzTK7t7gHcdeWY6iHbhYV9V0RwoXF8RT/1T4KT2BUxYbgNss5jr2VBJjmyxFf
	 kbxuLtHNedIF9j28/V6YWnPwt4PcW/gnAZxaksXDEgLpS7hxvaqS4ADH3PggZCWHLsLKj
	 rxTu9FzT94zevjsZHT1jvz+I8TY4y3cXeNtIMoSXlcdoCe8XqzqH5rkErjWN9TZwhgg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794084216;
	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=68bp6QK8kEx9w15xHAI7181CGoSCj6CC94TncfB0GEs=;
	b=DSL0M067Z9jAHGi2/RL4KD+l/kgi7UBJgO0GMZ5wIi57BSMVPJiEIksLiDycxDVd+7Cq
	 6iZxPDKDlwhrLk9JFCwz4nz0NhzkPba0qZSEHPsPJhmwQ9JVbArjifw1f7dzHKQcJtVRn
	 R6iIbC7VXKQfMRJAsaD95MphNcMc7bX2mbVTBYfg5caB9gnsQsf/MV3QxYUAAsv7dC5s1
	 SzsYFx8fqkWYxAesDhOKq/2EW/a8mXNgJK0a5ixBYSkHNndP5I4sSy4BUYmYkGFSf7rA4
	 uOYFDI0MGI7uzbSwZjww2GvFg0jz5d03TI+KlKSPH4gcvcVYu73iGL9CvV7QsS+JuFA==
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=C6ixnZmr;
	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 EB1A4606A331;
	Sat,  7 Nov 2026 20:43:35 +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=C6ixnZmr
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=1794084200;
	b=dxz4HxUPLlpxfjAfe+BfwViCFKgmFQiY4rUsn+YDqyZXs60w5LtS+3Mr8CAq8uWTR1Ch
	 KKZUh3BLQCXze8TCkyrkI7Pjqca2ZWwu6NX62SDjdZsbt8YmPXy+e3S2L2LjRb8e4CP4e
	 cX7Qde3AtGR/1vKHXJjkauWEDFycO3YB7BEc0X+pdo3WwYRUya9eT0sG7UnMIbRJKcVky
	 84Ie2o+KqH+d/PC1YYmhUCS79UhKzXr7smpdr5NGhQeElCFpRcaY8wZbI9SUiSJceZzyd
	 ATcwcRGavLqghJuBjaka1ydetSZrfyJdVgLTdW239PgbHE6fmSRX7HyFMqf2HAMFRDw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794084200;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=68bp6QK8kEx9w15xHAI7181CGoSCj6CC94TncfB0GEs=;
	b=fG7n6mwvHinviE3TYpbp6pQqzKEnerWchXFMat6kyGAP7tO1a6bXuUObPzFbRg6JHHQ9
	 F3IYhQLALUmXka6MbRip4Q0pOA1b4blMtB2gsnIzkKSOqBlPyh+GU8MlsZg/ToLzgHHaI
	 reIwx9b0Bei9EkKLoTFyvQXPUnvCi5lugYnZgWPe+tbI8u6Q1TvoSJpXB6aPYx3qWnUym
	 BhKh9fNANhaWtVgAbt82/VMq5MuR64+0fE0fajq8vsxnVx51szxWsyoPx+X2egDVkVhgD
	 lHAZfta3p9cSC9Zw4dr+TSUsM9LKtR5woQYUb09mT/5KQZWZ8fEMyE8KOTIDdDKhx+w==
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=C6ixnZmr;
	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 AB8D1606A326;
	Sat,  7 Nov 2026 20:43:19 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org AB8D1606A326
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=68bp6QK8kEx9w15xHAI7181CGoSCj6CC94TncfB0GEs=; b=C6ixnZmrVhi5lYWRYgBi8GXTnE
	kwEAECAjtMqRKld7xoX4PkzCkX16Xk2SyDpurj8jVbd6uswsvUnuYpQj9yBQ/tIBHUhCWTzwLROqb
	kDEvAh95rSHADslkp3Cy5gofmbolBHo76XF7pRjxhKl3FximtDWDAwGVZk7aJEqclyaA=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xPnFd-00F0HZ-8k; Sat, 07 Nov 2026 21:43:01 +0100
X-Cc: Krzysztof Kozlowski <krzk@kernel.org>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Rob Herring <robh@kernel.org>,
	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" <netdev@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"linux-kernel@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: <SI2PR06MB51406DA90F387ED0C64073869D772@SI2PR06MB5140.apcprd06.prod.outlook.com>