From 2a080d6a7c4c034b9483678b58b5df04e4068234 Mon Sep 17 00:00:00 2001 From: Leonidas P <29687487+JpegXguy@users.noreply.github.com> Date: Thu, 28 Feb 2019 16:30:21 +0200 Subject: [PATCH] rockchip64-dev: tweak tx/rx delay in network stability patch seems like this patch headed upstream for rk3328-roc-cc: https://patchwork.kernel.org/patch/10804863/ doesn't include the tx/rx delay changes in the original rock64 patch: https://patchwork.kernel.org/patch/10178969/ My testing showed these changes help with a link down and reset that happens on heavy exchanges, like streaming. Maybe we should sumbit upstream a patch that hadles this as well? --- ...oard-renegade-force-threshold-dma-mode-rgmii.patch | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/patch/kernel/rockchip64-dev/board-renegade-force-threshold-dma-mode-rgmii.patch b/patch/kernel/rockchip64-dev/board-renegade-force-threshold-dma-mode-rgmii.patch index c9ccc2a154..c5378c3c79 100644 --- a/patch/kernel/rockchip64-dev/board-renegade-force-threshold-dma-mode-rgmii.patch +++ b/patch/kernel/rockchip64-dev/board-renegade-force-threshold-dma-mode-rgmii.patch @@ -1,8 +1,8 @@ diff --git a/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts b/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts -index 53c7a02ee..9c26f3864 100644 +index 53c7a02ee..5d252f5f9 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts +++ b/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts -@@ -104,6 +104,7 @@ +@@ -104,11 +104,12 @@ phy-mode = "rgmii"; pinctrl-names = "default"; pinctrl-0 = <&rgmiim1_pins>; @@ -10,3 +10,10 @@ index 53c7a02ee..9c26f3864 100644 snps,reset-gpio = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>; snps,reset-active-low; snps,reset-delays-us = <0 10000 50000>; +- tx_delay = <0x25>; +- rx_delay = <0x11>; ++ tx_delay = <0x24>; ++ rx_delay = <0x18>; + status = "okay"; + }; +