forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mediatek: Fix packet corruption on bridge interface
- Loading branch information
Cristian Ciobanu
committed
Apr 10, 2020
1 parent
f54f1d2
commit 2c5efb3
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
...linux/mediatek/patches-5.4/0004-mediatek-fix-packet-corruption-on-bridged-interface.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
From 0593f719ca873722c6ac66604f027a63663c9b64 Mon Sep 17 00:00:00 2001 | ||
From: Alexey Loukianov <[email protected]> | ||
Date: Fri, 7 Jun 2019 12:33:45 +0300 | ||
Subject: [PATCH 04/12] mediatek: fix packet corruption on bridged interface | ||
|
||
This fixes problem that was reported here: | ||
http://forum.banana-pi.org/t/openwrt-18-06-malformed-ip-packets-at-bridged-interface/ | ||
|
||
Fix is to set both gmacs to use trgmii mode. | ||
This fix is not technically correct as second gmac | ||
does not support trgmii mode but current driver | ||
implementation seems to handle it somehow and | ||
it is the only way to have both gmacs enabled | ||
and avoid corruption of the packets on brigded | ||
lanX interfaces. | ||
|
||
Signed-off-by: Alexey Loukianov <[email protected]> | ||
--- | ||
.../0067-dts-bpi-r2-fix-second-gmac.patch | 20 +++++++++++++++++++ | ||
1 file changed, 20 insertions(+) | ||
create mode 100644 target/linux/mediatek/patches-4.14/0067-dts-bpi-r2-fix-second-gmac.patch | ||
|
||
diff --git a/target/linux/mediatek/patches-4.14/0067-dts-bpi-r2-fix-second-gmac.patch b/target/linux/mediatek/patches-4.14/0067-dts-bpi-r2-fix-second-gmac.patch | ||
new file mode 100644 | ||
index 0000000000..145c188972 | ||
--- /dev/null | ||
+++ b/target/linux/mediatek/patches-4.14/0067-dts-bpi-r2-fix-second-gmac.patch | ||
@@ -0,0 +1,20 @@ | ||
+--- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | ||
++++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | ||
+@@ -141,7 +141,7 @@ | ||
+ gmac1: mac@1 { | ||
+ compatible = "mediatek,eth-mac"; | ||
+ reg = <1>; | ||
+- phy-mode = "rgmii"; | ||
++ phy-mode = "trgmii"; | ||
+ | ||
+ fixed-link { | ||
+ speed = <1000>; | ||
+@@ -206,7 +206,7 @@ | ||
+ reg = <5>; | ||
+ label = "cpu"; | ||
+ ethernet = <&gmac1>; | ||
+- phy-mode = "rgmii"; | ||
++ phy-mode = "trgmii"; | ||
+ | ||
+ fixed-link { | ||
+ speed = <1000>; | ||
-- | ||
2.23.0 | ||
|