[PATCH 2/2] net: phy: mscc: sync rx/tx delay settings with Linux on vsc85xx
Tom Rini
trini at konsulko.com
Thu Oct 1 16:09:29 CEST 2020
On Tue, Jun 09, 2020 at 03:37:40PM +0200, Heiko Stuebner wrote:
> From: Heiko Stuebner <heiko.stuebner at theobroma-systems.com>
>
> 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 <heiko.stuebner at theobroma-systems.com>
> Reviewed-by: Philipp Tomsich <philipp.tomsich at theobroma-systems.com>
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: <https://lists.denx.de/pipermail/u-boot/attachments/20201001/41f01e9c/attachment.sig>
More information about the U-Boot
mailing list