summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b0fe7f2)
raw | patch | inline | side by side (parent: b0fe7f2)
author | Venkateswara Rao Mandela <venkat.mandela@ti.com> | |
Thu, 22 Mar 2018 12:18:01 +0000 (17:48 +0530) | ||
committer | Venkateswara Rao Mandela <venkat.mandela@ti.com> | |
Thu, 22 Mar 2018 12:18:01 +0000 (17:48 +0530) |
bootswitch.c | patch | blob | history |
diff --git a/bootswitch.c b/bootswitch.c
index c9fbab3f429fa84a01d457955585d71ca5f74b62..2abffe2a6549f83876f81332c257857fb39b5cfb 100644 (file)
--- a/bootswitch.c
+++ b/bootswitch.c
int r;
unsigned int data = 0xF0030006;
int count = 0;
- int boot_mode;
+ int boot_mode = 0;
int per_boot = 0;
char *boot_str;
FILE *fp_mlo;
fp_log = stderr;
}
- get_boot_mode(&per_boot, &boot_mode, mlo_name);
+ if (per_boot == 0)
+ get_boot_mode(&per_boot, &boot_mode, mlo_name);
fprintf(fp_log,"Per boot is %d\nBoot mode is %d\n",per_boot, boot_mode);
fprintf(fp_log,"MLO name %s\n",mlo_name);
if (devh == NULL)
sleep(1);
} while ((i < MAX_RETRIES) && (devh == NULL));
-
+
if(devh == NULL)
goto cleanup;