🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #11458

Re: [PATCH net-next 2/2] net: stmmac: Add Siflower SF19A2890 glue

#11458
From: Andrew Lunn
Date: Wed, 04 Nov 2026 21:35
24 lines
9629 bytes
> +/* The MAC adds an RGMII delay only where the device tree asks for one */
> +static int sf19a2890_gmac_set_delays(struct sf19a2890_gmac *gmac)
> +{
> +	u32 tx, rx;
> +	int ret;
> +
> +	ret = sf19a2890_gmac_get_delay(gmac, "tx-internal-delay-ps", &tx);
> +	if (ret)
> +		return ret;
> +
> +	ret = sf19a2890_gmac_get_delay(gmac, "rx-internal-delay-ps", &rx);
> +	if (ret)
> +		return ret;
> +
> +	writel(tx, gmac->cfg + SF19A2890_GMAC_TX_DELAY);
> +	writel(rx, gmac->cfg + SF19A2890_GMAC_RX_DELAY);
> +	writel(!!rx, gmac->cfg + SF19A2890_GMAC_RX_DELAY_EN);

What does SF19A2890_GMAC_RX_DELAY_EN do? By default rx is 0, so the
delay is not enabled. Is that any different to actually enabling it
with SF19A2890_GMAC_RX_DELAY set to 0?

	Andrew
Technical Details
Message-ID: <ba345fce-e88a-4aac-b9a4-59c500f80247@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-356968-linux-kernel-netdev=dewy.ru
References: <20261104-sf19a2890-gmac-v1-0-a15965a49574@telaak.dev> <20261104-sf19a2890-gmac-v1-2-a15965a49574@telaak.dev>

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-356968-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next 2/2] net: stmmac: Add Siflower SF19A2890 glue
Date: Wed, 4 Nov 2026 22:35:16 +0100
Organization: Usenet Network
Message-ID: <ba345fce-e88a-4aac-b9a4-59c500f80247@lunn.ch>
References: <20261104-sf19a2890-gmac-v1-0-a15965a49574@telaak.dev>
 <20261104-sf19a2890-gmac-v1-2-a15965a49574@telaak.dev>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="3546009"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:bWezLR2yomWPGDc0ahw1XuNYnBE= sha256:hQFw861MsGNROX73ecymcVbnfK8F6n/Ak6G2Zd6v1/c=
	sha1:C/Q4neta9A80OxyU10eOvOrHMyo= sha256:jG9QjLwtAkpEn/FCW6pmNguP2daLS+Y5N0GNocbOXis=
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 4A53E112E51; Thu,  5 Nov 2026 05:46:03 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.95
X-Spam-Status: No, score=-1.95 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,
	URIBL_BLOCKED=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 zIWE3nRE9cRP;
	Thu,  5 Nov 2026 05:45:59 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-356968-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 E31C9112E50; Thu,  5 Nov 2026 05:45:50 +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 1BD0F12069C; Wed,  4 Nov 2026 22:03:50 +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=1793828140;
	b=Nj5GCEiY5XKft74yjGPACioNA+vrGf6A5QRbLLKqK5YJQ60+Gu2oM6Aa0uJWhg4JvBCa
	 PYr33IMQJG6OU2enpWmvbh4pLEYuqXCF6suYQZehcBLs/YKbm3WMIfGWwxj8X8J2IQS0J
	 DJwr4jWRD/snkJS6PU2QSV8J5GQttUzizb+Jko4gGQtiEzfoxZSJH4/YiEzNJftKJA06K
	 2KjjEsLP6mAwV+SdA48uNWRgTXXvGLOTdQC7YfKRh+XavDZiynAmOjrEdQ+nXy6Cp/hpK
	 j/Y8pgYp2nH67RjTTOJ1Om6aEPf+TWR9xwkLrIdpfsiP8UPi4rEV9SUBx1tSQG3zloQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793828140;
	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=UZCPbOxuHxVfcCpmEyp2FuF94MWKe2jTtQcOlBA8NP8=;
	b=1XjyvfKtnUPxd0/Ls1FV30obwaIgHfa5EquzmYkFE13SPZ5DLVzgXzA4zBuQ2htgDHOh
	 yx5RhWMEesDxX95NB6uHJSp2R5B9lRKh6dX3fa5uuxthhYNrJTWeKwrXAKmA4915no5PU
	 gjdYDvqy1lLmRSFjiACgyVnqHBHiJyCC6BfaQdYh+MfvHgf0ldcsqU4BExhhkc0FFIaut
	 jC0+9XeHb/ChmBna6Dl5NzFV/stBi+tx/IACWN7zP+et0hLK4t61iuj91rWj0/Ib0Y6Ik
	 1iFstrqTrlYoEd1Ma81BJLtUFMVUR5g+rsIRe4gOaJaPA9lkFLJ4LIWyxS10coxmQgQ==
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=VDrsKog5;
	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 9C4E8606E2C1;
	Wed,  4 Nov 2026 21:35:40 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key, unprotected) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=VDrsKog5
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=1793828129;
	b=Yy4WELS9eilyrKWxvq5uPkBCn724tFWADCaQY3q+OHgBl5TDguh6PZSbU+Uxn0e3gmtR
	 6SVXlyD5X3fxHuw2DBa83NVdITP5TGpOz6Cft7qZPkAHR9+2RpLXCZjeVTExEIiCskRyK
	 sZgyUxttKbgBUfrSN0VboIcFsbKWXFFPCfTRQXqtVakCHdGa8r+41Hno5vb3l9e5IbEPU
	 7Ng2+a3fFKaqjorrP1MwFMpeQbd5jDhSEUzuFqqEAM07Eos5RZ09zbWXnpM45/WvLAlV7
	 D4f3ZeU0FiyS62Hr3jRxHyZnc+i3tu/u9fLIp6MIViLNzf4r661YUiwxcll8g8LuYfg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793828129;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=UZCPbOxuHxVfcCpmEyp2FuF94MWKe2jTtQcOlBA8NP8=;
	b=oZ5kAyE4Xg0/1d5x1pQ0XaWRMEDwCzDZzoaFYe2A3goCoCZ6FocFbHd6cZdAoOFRZACX
	 +ImHqDwgY3p7kYyFQT/e9J9+ZD2zUBD51cp636coZ2afEexGLZoG8jdoy9Rf52B4n7fKn
	 JgxWdANwmgOnvbmslVnc/ScxJtKyyDWRLDvKfbGNQxKG08HtM23h/51zdR0qpz1WaihVF
	 u/QNCyIgkIrwJMOcApkGflBnJkHbUL1hPGC8gmTrvhMrvQY4BMctauPSgr6j1OYE4WJsN
	 vuZC/y3pfMbYf/VpAwQbZJwdEByA3utL6AipmX73b4fhRg3VPUnJxPXRe76K9uxXaRg==
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=VDrsKog5;
	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 6C16A606A328;
	Wed,  4 Nov 2026 21:35:29 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6C16A606A328
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=UZCPbOxuHxVfcCpmEyp2FuF94MWKe2jTtQcOlBA8NP8=; b=VDrsKog51b2RF7ESU9eYKcZLb8
	VqMM9W/eeGlQgJy1/KjdcLA2TaK3nJJH1QKsBvJ1gSnoIvwrZDLlOnhXQnczL8BcAFReUSgXn/+Yv
	uXArciRi7epVa64gYAv3P0Khywv0cbo4wUI7FDbezlCziZysGT/TTxixnefFk+tS31rs=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xOidY-00EOR7-8u; Wed, 04 Nov 2026 22:35:16 +0100
X-Cc: Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	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>,
	Richard Cochran <richardcochran@gmail.com>,
	Alexandre Torgue <alexandre.torgue@foss.st.com>,
	Giuseppe Cavallaro <peppe.cavallaro@st.com>,
	Jose Abreu <joabreu@synopsys.com>,
	Maxime Chevallier <maxime.chevallier@bootlin.com>,
	Maxime Coquelin <mcoquelin.stm32@gmail.com>,
	Chuanhong Guo <gch981213@gmail.com>,
	Russell King <linux@armlinux.org.uk>, linux-mips@vger.kernel.org,
	netdev@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	linux-stm32@st-md-mailman.stormreply.com,
	linux-arm-kernel@lists.infradead.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: <20261104-sf19a2890-gmac-v1-2-a15965a49574@telaak.dev>