diff options
author | Ye Li <ye.li@nxp.com> | 2018-11-04 19:31:52 -0800 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2018-11-06 19:25:58 -0800 |
commit | d86096accb1619e57e09309403b4d982a8493e59 (patch) | |
tree | 854dabc3272793135b4dda30091a861546b382cd /drivers | |
parent | 0442e985133f546c745f501e3339786a0fb04f6b (diff) |
MLK-19852 imx: fastboot: eliminate confused print
When booting from NAND/SPINOR/WEIMNOR boot devices, the fastboot will
print "unsupported boot device". This warning is used by android fastboot
when setting its "bootcmd". Since android does not support these devices.
so it gives the warning correctly.
But for BSP normal boot, this warning will bring confuse to users. So
change to check the "bootcmd" before giving such warning.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/gadget/f_fastboot.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c index ace0ed4b57..ae8fe80955 100644 --- a/drivers/usb/gadget/f_fastboot.c +++ b/drivers/usb/gadget/f_fastboot.c @@ -1542,7 +1542,8 @@ void board_fastboot_setup(void) break; #endif /*CONFIG_FASTBOOT_STORAGE_MMC*/ default: - printf("unsupported boot devices\n"); + if (!env_get("bootcmd")) + printf("unsupported boot devices\n"); break; } |