53 lines
1.6 KiB
Diff
53 lines
1.6 KiB
Diff
From 59da261a6f057fd191d56b4171dcc12f7b6bd077 Mon Sep 17 00:00:00 2001
|
|
From: Frank Wunderlich <frank-w@public-files.de>
|
|
Date: Sat, 18 Jan 2025 15:59:43 +0100
|
|
Subject: [PATCH 80/84] enable debugfs
|
|
|
|
---
|
|
drivers/net/ethernet/mediatek/mtk_eth_soc.c | 8 ++++++--
|
|
1 file changed, 6 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
|
|
index 045619d37d83..84ab560a1b80 100644
|
|
--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
|
|
+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
|
|
@@ -32,6 +32,7 @@
|
|
#include <linux/genalloc.h>
|
|
|
|
#include "mtk_eth_soc.h"
|
|
+#include "mtk_eth_dbg.h"
|
|
#include "mtk_wed.h"
|
|
|
|
static int mtk_msg_level = -1;
|
|
@@ -384,7 +385,7 @@ int _mtk_mdio_write_c22(struct mtk_eth *eth, u32 phy_addr, u32 phy_reg,
|
|
return 0;
|
|
}
|
|
|
|
-static int _mtk_mdio_write_c45(struct mtk_eth *eth, u32 phy_addr,
|
|
+int _mtk_mdio_write_c45(struct mtk_eth *eth, u32 phy_addr,
|
|
u32 devad, u32 phy_reg, u32 write_data)
|
|
{
|
|
int ret;
|
|
@@ -442,7 +443,7 @@ int _mtk_mdio_read_c22(struct mtk_eth *eth, u32 phy_addr, u32 phy_reg)
|
|
return mtk_r32(eth, MTK_PHY_IAC) & PHY_IAC_DATA_MASK;
|
|
}
|
|
|
|
-static int _mtk_mdio_read_c45(struct mtk_eth *eth, u32 phy_addr,
|
|
+int _mtk_mdio_read_c45(struct mtk_eth *eth, u32 phy_addr,
|
|
u32 devad, u32 phy_reg)
|
|
{
|
|
int ret;
|
|
@@ -5913,6 +5914,9 @@ static int mtk_probe(struct platform_device *pdev)
|
|
}
|
|
}
|
|
|
|
+ mtketh_debugfs_init(eth);
|
|
+ debug_proc_init(eth);
|
|
+
|
|
platform_set_drvdata(pdev, eth);
|
|
schedule_delayed_work(ð->reset.monitor_work,
|
|
MTK_DMA_MONITOR_TIMEOUT);
|
|
--
|
|
2.30.2
|
|
|