tvconfig: update ini parser to save line memory size [1/1]
PD#SWPL-186969
Problem:
bootup crash sometime for tvconfig load and parse
Solution:
update ini parser to save line memory size
Verify:
ay301
Change-Id: I1b92530c75c34cb4abf1c49c3a13d88980deb74a
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
diff --git a/cmd/ini.c b/cmd/ini.c
index 9bce9cc..4c5a693 100644
--- a/cmd/ini.c
+++ b/cmd/ini.c
@@ -259,11 +259,16 @@
{
int ret;
- if (argc > 1)
- return CMD_RET_USAGE;
+ if (argc == 1) {
+ ret = handle_model_list();
+ return ret;
+ }
+ if (strcmp(argv[1], "lcd") == 0 || strcmp(argv[1], "panel") == 0) {
+ handle_model_list_panel_key();
+ return 0;
+ }
- ret = handle_model_list();
- return ret;
+ return CMD_RET_USAGE;
}
U_BOOT_CMD(