From: Tom Rini Date: Thu, 1 Oct 2020 10:09:29 -0400 Subject: [PATCH 2/2] net: phy: mscc: sync rx/tx delay settings with Linux on vsc85xx In-Reply-To: <20200609133740.1421966-2-heiko@sntech.de> References: <20200609133740.1421966-1-heiko@sntech.de> <20200609133740.1421966-2-heiko@sntech.de> Message-ID: <20201001140929.GH14816@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Jun 09, 2020 at 03:37:40PM +0200, Heiko Stuebner wrote: > From: Heiko Stuebner > > The Linux kernel does set the clock delays to > - 0.2 ns (their default, and lowest, hardware value) if delays should > not be enabled > - 2.0 ns (which causes the data to be sampled at exactly half way between > clock transitions at 1000 Mbps) if delays should be enabled > depending on the interface mode > > See https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/net/phy/mscc/mscc_main.c#n523 > > So instead of using arbitrary delay values like now, mimic this behaviour. > > The behaviour is the same for all of vsc8530/8531/8540/8541 so move that > to a shared function while at it. > > Signed-off-by: Heiko Stuebner > Reviewed-by: Philipp Tomsich Applied to u-boot/next, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: