diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2023-03-21 19:36:16 +0100 |
---|---|---|
committer | Álvaro Fernández Rojas <noltari@gmail.com> | 2023-03-21 19:36:16 +0100 |
commit | 82dc16fde0337b573c543f023f3fe1d3657e17e4 (patch) | |
tree | 91e570acc66ec33b9f2a8a428dd0caedbb5ded0d /target/linux/bmips/files/drivers | |
parent | c6eb099db98eeb438d84a75cf5fcfe49f104be2c (diff) | |
download | upstream-82dc16fde0337b573c543f023f3fe1d3657e17e4.tar.gz upstream-82dc16fde0337b573c543f023f3fe1d3657e17e4.tar.bz2 upstream-82dc16fde0337b573c543f023f3fe1d3657e17e4.zip |
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>
Diffstat (limited to 'target/linux/bmips/files/drivers')
-rw-r--r-- | target/linux/bmips/files/drivers/net/ethernet/broadcom/bcm6368-enetsw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/bmips/files/drivers/net/ethernet/broadcom/bcm6368-enetsw.c b/target/linux/bmips/files/drivers/net/ethernet/broadcom/bcm6368-enetsw.c index 64736ebf61..f43e484a9b 100644 --- a/target/linux/bmips/files/drivers/net/ethernet/broadcom/bcm6368-enetsw.c +++ b/target/linux/bmips/files/drivers/net/ethernet/broadcom/bcm6368-enetsw.c @@ -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 + \ |