arm64: dts: rockchip: fix rock64 gmac2io stability issues
authorKamil Trzciński <ayufan@ayufan.eu>
Mon, 22 Jan 2018 17:46:22 +0000 (18:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:51:54 +0000 (07:51 +0200)
commitfa4cf9010ed60b11b8693d67b7f1dc117e0000b5
tree986e7231decba405e7d42d8bb1ffc2edffbd06b5
parent6fc72fd1565bcd7f872ad89cd0c7a60a7cf68c96
arm64: dts: rockchip: fix rock64 gmac2io stability issues

[ Upstream commit 73e42e18669934fa96cf2bb54291da54177076d7 ]

This commit enables thresh dma mode as this forces to disable checksuming,
and chooses delay values which make the interface stable.

These changes are needed, because ROCK64 is faced with two problems:
1. tx checksuming does not work with packets larger than 1498,
2. the default delays for tx/rx are not stable when using 1Gbps connection.

Delays were found out with:
https://github.com/ayufan-rock64/linux-build/tree/master/recipes/gmac-delays-test

Signed-off-by: Kamil Trzciński <ayufan@ayufan.eu>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/boot/dts/rockchip/rk3328-rock64.dts