[][Add mt7531 cl45 phy access capability to switch command]
[Description]
Add mt7531 cl45 phy access capability to switch command via ioctl.
[Release-log]
N/A
Change-Id: I7c9b0c01acbc11b471adff6e29f6e2f6b2767d78
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/4590345
diff --git a/feed/switch/src/switch_fun.c b/feed/switch/src/switch_fun.c
index aefb927..92f0e12 100755
--- a/feed/switch/src/switch_fun.c
+++ b/feed/switch/src/switch_fun.c
@@ -122,7 +122,7 @@
ret = mii_mgr_cl22_read_ioctl(port_num, reg, value);
if (ret < 0) {
- printf("Phy read fail\n");
+ printf("Phy cl22 read fail\n");
exit_free();
exit(0);
}
@@ -145,7 +145,7 @@
ret = mii_mgr_cl22_write_ioctl(port_num, reg, value);
if (ret < 0) {
- printf("Phy write fail\n");
+ printf("Phy cl22 write fail\n");
exit_free();
exit(0);
}
@@ -168,7 +168,7 @@
ret = mii_mgr_cl45_read_ioctl(port_num, dev, reg, value);
if (ret < 0) {
- printf("Phy read fail\n");
+ printf("Phy cl45 read fail\n");
exit_free();
exit(0);
}
@@ -191,7 +191,7 @@
ret = mii_mgr_cl45_write_ioctl(port_num, dev, reg, value);
if (ret < 0) {
- printf("Phy write fail\n");
+ printf("Phy cl45 write fail\n");
exit_free();
exit(0);
}