From 61533898056403823f2bd1f2ae8fc18e9dbe764c Mon Sep 17 00:00:00 2001 From: Jason Zhu Date: Thu, 5 Dec 2019 20:03:19 +0800 Subject: [PATCH] fastboot: delete command at-disable-unlock-vboot It is no need to support this command that it makes difficult to debug when disable unlock device. Change-Id: I1f38d9d0d12aa8a7cbadf5c87567e52fb712013e Signed-off-by: Jason Zhu --- drivers/usb/gadget/f_fastboot.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c index e9f86745af..5f2eeaa777 100644 --- a/drivers/usb/gadget/f_fastboot.c +++ b/drivers/usb/gadget/f_fastboot.c @@ -2108,17 +2108,6 @@ static void cb_oem(struct usb_ep *ep, struct usb_request *req) } #else fastboot_tx_write_str("FAILnot implemented"); -#endif - } else if (strncmp("at-disable-unlock-vboot", cmd + 4, 23) == 0) { -#ifdef CONFIG_RK_AVB_LIBAVB_USER - uint8_t lock_state; - lock_state = 2; - if (rk_avb_write_lock_state(lock_state)) - fastboot_tx_write_str("FAILwrite lock state failed"); - else - fastboot_tx_write_str("OKAY"); -#else - fastboot_tx_write_str("FAILnot implemented"); #endif } else if (strncmp("fuse at-perm-attr", cmd + 4, 16) == 0) { cb_oem_perm_attr();