🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #11665

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

#11665
From: 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
Technical Details
Message-ID: <20261105-ambrosial-natural-ibis-7cecb6@quoll>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357296-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>

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-357296-linux-kernel-netdev=dewy.ru
From: krzk@kernel.org (Krzysztof Kozlowski)
Newsgroups: linux.kernel.netdev
Subject: Re: 回覆: [PATCH net-next v5 1/7] dt-bindings: net: ftgmac100: Make Aspeed compatibles standalone
Date: Thu, 5 Nov 2026 12:59:14 +0100
Organization: Usenet Network
Message-ID: <20261105-ambrosial-natural-ibis-7cecb6@quoll>
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>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Injection-Info: usenet.network;
	logging-data="3633669"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:pwFvJ3ovz3sEGi3bHfEM96WyxSk= sha256:y+FQacWIveD4ZPdiI9sOjhZ+i/x602TmZr7YeITvT2k=
	sha1:PKb7rSDF5bBq00fuUddbIMPxanQ= sha256:xlNiRJfJmdaCHiRhIl5cwj7mHTmAlorO02AzMSkPM44=
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 66EC7112F68; Thu,  5 Nov 2026 15:16:47 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.301
X-Spam-Status: No, score=-2.301 tagged_above=-9999 required=6.31
	tests=[DCC_CHECK=1.1, 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 6v5swQJwzIRN;
	Thu,  5 Nov 2026 15:16:40 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-357296-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id DF286112F66; Thu,  5 Nov 2026 15:16:31 +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 5FC072FA93; Thu,  5 Nov 2026 11:59:30 +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=1793879970;
	b=evMde+gE/O0ATdGApSwd7J4lCj6r3kiRg0QnhZpSCKJv9Sa9uABtyOcRTNQl0n+qW69x
	 7iebmH2QUWhxPhpFgJyF3SuiHNClSGb2m0GB18G++fwrRBQu2Qw99Iaa2gX44WEX/fHvq
	 tT7zj5+Ga5oLZzVolQUefSFurqyQHErU6uOU7Y34I0ocI6RDtsfdsTz9EdW+PQnZTEq2P
	 hxrAmrauv93+f6dRI0Rt0x+NB/HLglhqif8pUV9+InhbYxd71IFp0aIm7lfX/Co70t0EM
	 2TTZM8ZYF08wFj4oR0RXl2w4EPIZs5eQbSrZkgOWK0n1jR7ss59CxUiNL6VJvTYvufA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793879970;
	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=6UOX2DdtJrEU9Vfm428FmoY98pTrRMr9bz6LvGWRSeM=;
	b=vrzPLBJBAgWFEP7odYQDGEVUPvN0y3qDTcepXlw7yQm8LYGhSO7y8VikeKMbK0D7ywMd
	 pYV0d9DnP1p4wOUss82VqfLdomgNUOTgvRYJa/uA2pup/SQ0Wv/CqjELUxqVsFQVzsz/m
	 gX9/f5vhrUqZB8Nyb4lw2sQZp/WsMQCpUb6EzdA+mGJbV2Y3fpQxx+FKHuS0oYUWi64EZ
	 H2IiRBims1QvbM+/tilagNZCd+Aw1IWsf8ykfcsUhRIoYUjK7Eq4YpRd1YWqY9d973JEf
	 BIKW77fpMLn3Rw+/gk+2ND0awSH1sgqLpuZwmc2CcrHagw2hIfF9hSOhzuHsC++XywQ==
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=CMTnQiZE;
	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 10789606A328;
	Thu,  5 Nov 2026 11:59:30 +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=CMTnQiZE
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=1793879959;
	b=o5Pp3h3YOPfO4Kphch1lP7JadJ4wSyrgv+OyWWcauR5sL1yh0dv0OR5/1/Lj3g61raGS
	 pLFDSVIh10fdbgr/rYI1WMvrVqbIeatU/suD5by37v86+qZpuzGs4BaC7cijd38zJqPzQ
	 XuLCmenpcwTt1zDO9jZrDBx+ChsmjnwMHgBUfBKgAsOpjFyvXLKgzQBCnRzQTczGifxck
	 Va3SALqiJ3b54m3NfuwEdnTGQdi6h3ItOMOo4q4gd/GThn1U892vDehYrBuQjKaLg5FYj
	 rEZN6uyxH0KJu4DWFKegdX60qL+Uk1w0d4fNUmPBJUPUq6Joih3miI47/UoLmfj/pdw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793879959;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=6UOX2DdtJrEU9Vfm428FmoY98pTrRMr9bz6LvGWRSeM=;
	b=RSqwGIzsvv9QfK4z7B21Dv7/Rr5Q8ZJlOMe8tHQFJ77ltSaCRN799K9ShADi5NGDVIwW
	 BQJhw9mYK3ZM3iU8g1Z6GDGiozEJlbQQqCIb7S8/rpVOuLhi0lJR+NDT4ISewKSnoVcIv
	 yVrkzhJ7r22avKJCDr3jZuRBxAFk2mcqyTDn+0D7OTCH351xWMsH40+dYmtrDHIX57eSG
	 FnHH6hcQlThZLROnyN55+dkeA/BqEPClmCrknH4CF9re1IDSwy9nl/4N6nTWhZKjzEuLp
	 duYmhAFlXpTBTDA4nz/8fCmbJb9aMk7jFEVWk6oFn1OvLGeTjHoW2J+7byRz26qUSZQ==
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=CMTnQiZE;
	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 E7CE8606A31B;
	Thu,  5 Nov 2026 11:59:18 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id F34661F000C1;
	Thu,  5 Nov 2026 11:59:17 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793879958;
	bh=6UOX2DdtJrEU9Vfm428FmoY98pTrRMr9bz6LvGWRSeM=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=CMTnQiZEHB8VGiHag//9SCZTqU7XxMN8Zp8GgEWEQHnzpJubbUgxlZ0JkKRg0KM7L
	 6dYGCpe8etRHnmKGmF3maBVUfbktycJMfxWt6HJfbsX5lfMG3JgkT//xa9aOKMLwKk
	 gMu5KevzQBiS6iWpag3gmSvOBNDfAQDzuEtixI/TVvCNqsOu8z7d4K0SakUwdKYOv5
	 xzVSEivvZ9VKmdZNJPJHYva11xjH2rcieaoejRbaEa/ndplsgXeMzl/fcQheSkyQVw
	 hlaeRzm7BaWhCWDdYs5yuiIAswJbAWZstc9ifLVRq+MiauRSAV+Zy+FbvsR+QSox91
	 4Du1k8g5ZrfZg==
X-Cc: 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: <SEYPR06MB513412E04F4F0AE8ADE0375E9D682@SEYPR06MB5134.apcprd06.prod.outlook.com>