From 23851341e61f7fcf902e9069c1b510e196028494 Mon Sep 17 00:00:00 2001 From: chillymattster <106633144+chillymattster@users.noreply.github.com> Date: Sat, 6 Sep 2025 13:46:00 +0200 Subject: [PATCH] add description and meta information to rk3308-fix-10mbit-ethernet.patch --- .../rk3308-fix-10mbit-ethernet.patch | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/patch/kernel/archive/rockchip64-6.16/rk3308-fix-10mbit-ethernet.patch b/patch/kernel/archive/rockchip64-6.16/rk3308-fix-10mbit-ethernet.patch index 63023a0aa..846cc55a5 100644 --- a/patch/kernel/archive/rockchip64-6.16/rk3308-fix-10mbit-ethernet.patch +++ b/patch/kernel/archive/rockchip64-6.16/rk3308-fix-10mbit-ethernet.patch @@ -1,9 +1,31 @@ From 545ae14ee0159a449e6e0f2f1f54b8c5cc6023ef Mon Sep 17 00:00:00 2001 From: chillymattster <106633144+chillymattster@users.noreply.github.com> +From: Brent Roman Date: Wed, 3 Sep 2025 18:29:16 +0200 Subject: [PATCH] rk3308: Fix 10Mbit Ethernet +Origin: https://github.com/armbian/build/pull/6117 +Bug-armbian: https://github.com/armbian/build/pull/8575 +Bug-armbian: https://armbian.atlassian.net/browse/AR-1904 +Bug-armbian: https://forum.armbian.com/topic/30235-rockpi-s-ethernet-10mbps-not-working/ +Signed-off-by: chillymattster <106633144+chillymattster@users.noreply.github.com> +Last-Update: 2025-09-06 --- + This fixes bug AR-1904. + The original fix was only for current and not for edge kernel which caused + the patch being lost and made the problem reoccur. + . + According to the original PR#6117 the problem of 10mbps ethernot not working + has first been seen in the 5.15 armbian kernel caused by a rewrite of speed + setting for rk3308 in dwmc-rk.c that for unknown reasons completely omitted + the code needed to reprogram the MAC clock as appropriate for the selected + ethernet speed. + . + This patch corrects RK3308_GMAC_FLOW_CTRL and RK3308_GMAC_FLOW_CTRL_CLR to use + the correct bits for MAC onfiguration and restores the missing code needed for + setting the MAC clock required to match the selected ethernet speed. + . + drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)