summaryrefslogtreecommitdiff
authorXindong Xu <xindong.xu@amlogic.com>2019-08-16 07:33:56 (GMT)
committer Gerrit Code Review <gituser@droid04>2019-08-16 07:33:56 (GMT)
commit023def1c114fe5d0070cb34a115e05c42f625283 (patch)
tree0749bcea9dd737c050a177d198998f0a6c433dd4
parent6a537107b3011db35b9c1743d1d8160d89c8044d (diff)
parent8aae38fee54f463d7bb12eddff4901dd22c28c5b (diff)
downloaduboot-023def1c114fe5d0070cb34a115e05c42f625283.zip
uboot-023def1c114fe5d0070cb34a115e05c42f625283.tar.gz
uboot-023def1c114fe5d0070cb34a115e05c42f625283.tar.bz2
Merge "fastboot: do not flash logic partition in bootloader [1/1]" into p-tv-openlinux-nov
Diffstat
-rw-r--r--drivers/usb/gadget/f_fastboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c
index 00b3c83..6b47d2b 100644
--- a/drivers/usb/gadget/f_fastboot.c
+++ b/drivers/usb/gadget/f_fastboot.c
@@ -1220,7 +1220,7 @@ static void cb_flash(struct usb_ep *ep, struct usb_request *req)
if (dynamic_partition) {
if ((strcmp(cmd, "system") == 0) || (strcmp(cmd, "vendor") == 0)
- || (strcmp(cmd, "odm") == 0) || (strcmp(cmd, "product") == 0)) {
+ || (strcmp(cmd, "odm") == 0) || (strcmp(cmd, "product") == 0) || (strcmp(cmd, "test_partition") == 0)) {
error("system/vendor/odm/product is logic partition, can not write here\n");
fastboot_tx_write_str("FAILlogic partition");
return;