[][kernel][common][eth][Decrease the USXGMII dumping range for the NETSYS SER]
[Description]
Refactor the USXGMII dumping range for the NETSYS SER.
Without this patch, the NETSYS SER will dump too many unnecessary
USXGMII registers.
[Release-log]
N/A
Change-Id: I061529bd6b8aac43ff106d4cead5e3b4db00f5da
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/9635386
diff --git a/21.02/files/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_eth_reset.c b/21.02/files/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_eth_reset.c
index 2a512f8..066ce20 100644
--- a/21.02/files/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_eth_reset.c
+++ b/21.02/files/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_eth_reset.c
@@ -275,9 +275,9 @@
mtk_dump_reg(eth, "XGMAC0", 0x12000, 0x300);
mtk_dump_reg(eth, "XGMAC1", 0x13000, 0x300);
mtk_dump_regmap(eth->usxgmii->pcs[0].regmap,
- "USXGMII0", 0, 0x1000);
+ "USXGMII0", 0x800, 0x500);
mtk_dump_regmap(eth->usxgmii->pcs[1].regmap,
- "USXGMII1", 0, 0x1000);
+ "USXGMII1", 0x800, 0x500);
}
}