cd66de82b257516eb7df256803300efc8f4001c4
[openwrt/openwrt.git] / target / linux / arc770 / patches-4.4 / 700-stmmac-Disable-frame-filtering-completely.patch
1 From 0031b9011cb2b2b1de4dbb4f9620303aec760db4 Mon Sep 17 00:00:00 2001
2 From: Alexey Brodkin <abrodkin@synopsys.com>
3 Date: Wed, 27 Jul 2016 11:33:14 +0300
4 Subject: [PATCH] stmmac: Disable frame filtering completely
5
6 For some [still unknown] reason in ARC SDP boards
7 DW GMAC doesn't enter promiscuous mode if eth0 gets
8 added to the br-lan interface before Ethernet PHY finishes
9 autonegotiation (PHY gets reset on DW GMAC start).
10
11 As a work-around we completely disable frame filtering
12 in GMAC hardware which gives us working bridge that consists
13 of eth0 and wlan0 (USB Wi-Fi dongle). I.e. we finally have
14 working "Dumb AP" setup made of ARC AXS10x boards.
15
16 Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
17 ---
18 drivers/net/ethernet/stmicro/stmmac/common.h | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21 --- a/drivers/net/ethernet/stmicro/stmmac/common.h
22 +++ b/drivers/net/ethernet/stmicro/stmmac/common.h
23 @@ -42,7 +42,7 @@
24 #define DWMAC_CORE_3_50 0x35
25
26 #undef FRAME_FILTER_DEBUG
27 -/* #define FRAME_FILTER_DEBUG */
28 +#define FRAME_FILTER_DEBUG
29
30 /* Extra statistic and debug information exposed by ethtool */
31 struct stmmac_extra_stats {