diff options
Diffstat (limited to 'drivers/usb/gadget/fastboot_lock_unlock.c')
-rw-r--r-- | drivers/usb/gadget/fastboot_lock_unlock.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/gadget/fastboot_lock_unlock.c b/drivers/usb/gadget/fastboot_lock_unlock.c index 2a377f9ebd..06d21e73b8 100644 --- a/drivers/usb/gadget/fastboot_lock_unlock.c +++ b/drivers/usb/gadget/fastboot_lock_unlock.c @@ -385,6 +385,9 @@ FbLockState fastboot_get_lock_stat(void) { unsigned char *bdata; int mmc_id; FbLockState ret; + /* uboot used by uuu will boot from USB, always return UNLOCK state */ + if (is_boot_from_usb()) + return g_lockstat; bdata = (unsigned char *)memalign(ARCH_DMA_MINALIGN, SECTOR_SIZE); if (bdata == NULL) |