[][openwrt][switch][ARHT][update switch app to v1.0.7]
[Description]
Add below modification:
1). align switch app version to v1.0.7 with ARHT
2). fixed check_patch errors as much as possible in switch app
3). get_chip_name() directly return AN8855 to prevent 0x1f register
from being overwritten by reg_read
4). correct some files from Windos(CRLF) to UNIX(LF)
[Release-log]
N/A
Change-Id: I4913c8124ded81cffe0493748c0347fdb1fbb22f
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/9453546
diff --git a/feed/app/switch/src/switch_ioctl.c b/feed/app/switch/src/switch_ioctl.c
index f6b97d4..dd9e621 100644
--- a/feed/app/switch/src/switch_ioctl.c
+++ b/feed/app/switch/src/switch_ioctl.c
@@ -164,7 +164,7 @@
break;
}
}
- //printf(" PHY Indirect Access Control(0x701c) register read value =0x%x \n", reg_value);
+ //printf(" PHY Indirect Access Control(0x701c) register read value =0x%x\n", reg_value);
*value = reg_value;
return 0;
@@ -205,7 +205,7 @@
}
}
- //printf(" PHY Indirect Access Control(0x701c) register write value =0x%x \n", reg_value);
+ //printf(" PHY Indirect Access Control(0x701c) register write value =0x%x\n", reg_value);
return 0;
}
@@ -332,7 +332,7 @@
} else {
printf("MDIO cl45 set dev opeartion timeout\n");
reg_value = 0;
- ret = -1;
+ ret = -1;
goto out;
}
}
@@ -351,12 +351,12 @@
} else {
printf("MDIO cl45 read reg opeartion timeout\n");
reg_value = 0;
- ret = -1;
+ ret = -1;
break;
}
}
out:
- //printf(" PHY Indirect Access Control(0x701c) register read value =0x%x \n", reg_value);
+ //printf(" PHY Indirect Access Control(0x701c) register read value =0x%x\n", reg_value);
*value = reg_value;
return ret;
@@ -384,7 +384,7 @@
loop_cnt++;
else {
printf("MDIO cl45 set dev opeartion timeout\n");
- ret = -1;
+ ret = -1;
goto out;
}
}
@@ -401,12 +401,12 @@
loop_cnt++;
else {
printf("MDIO cl45 write reg opeartion timeout\n");
- ret = -1;
+ ret = -1;
break;
}
}
out:
- //printf(" PHY Indirect Access Control(0x701c) register write value =0x%x \n", reg_value);
+ //printf(" PHY Indirect Access Control(0x701c) register write value =0x%x\n", reg_value);
return ret;
}