2
0
forked from Ivasoft/openwrt

bmips: disable B53 MMAP phy read/write ops

Without this change, internal and external B53 switches couldn't coexist as
reported in https://github.com/openwrt/openwrt/issues/10313.
In order to fix this we need to force the B53 MMAP DSA switch driver to use
bcm6368-mdio-mux for accessing the PHY registers instead of its own phy_read()
and phy_write() functions.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
Álvaro Fernández Rojas
2023-03-21 19:36:16 +01:00
parent c6eb099db9
commit 82dc16fde0
2 changed files with 47 additions and 1 deletions

View File

@@ -22,7 +22,7 @@
#include <linux/reset.h>
/* MTU */
#define ENETSW_TAG_SIZE 6
#define ENETSW_TAG_SIZE (6 + VLAN_HLEN)
#define ENETSW_MTU_OVERHEAD (VLAN_ETH_HLEN + VLAN_HLEN + \
ENETSW_TAG_SIZE)
#define ENETSW_FRAG_SIZE(x) (SKB_DATA_ALIGN(NET_SKB_PAD + x + \