diff options
author | Winter Wang <wente.wang@nxp.com> | 2016-11-02 10:43:18 +0800 |
---|---|---|
committer | Winter Wang <wente.wang@nxp.com> | 2016-11-02 10:53:56 +0800 |
commit | d1830f03a9b1bee22cb1da662c8c8a3d1e7ad4c1 (patch) | |
tree | 870fc21675f7d00b8d05eaf1a0c3786647690091 | |
parent | 066f001a19bdc51b0fc0d65bcb87081b01f957c2 (diff) | |
download | u-boot-imx-d1830f03a9b1bee22cb1da662c8c8a3d1e7ad4c1.zip u-boot-imx-d1830f03a9b1bee22cb1da662c8c8a3d1e7ad4c1.tar.gz u-boot-imx-d1830f03a9b1bee22cb1da662c8c8a3d1e7ad4c1.tar.bz2 |
MA-8932 fastboot: increase max part num in GPT
increase the max part_num to 32 if using GPT
Signed-off-by: Winter Wang <wente.wang@nxp.com>
-rw-r--r-- | drivers/usb/gadget/f_fastboot.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c index d986f82..f694940 100644 --- a/drivers/usb/gadget/f_fastboot.c +++ b/drivers/usb/gadget/f_fastboot.c @@ -193,7 +193,11 @@ enum { PTN_MISC_INDEX, PTN_DATA_INDEX, PTN_FBMISC_INDEX, +#ifdef CONFIG_EFI_PARTITION + PTN_NUM = 32 +#else PTN_NUM +#endif }; #else @@ -1172,8 +1176,12 @@ static int _fastboot_parts_add_ptable_entry(int ptable_index, if (get_partition_info(dev_desc, mmc_dos_partition_index, &info)) { + /* if part_index exceeds using efi + * fail silently */ +#ifndef CONFIG_EFI_PARTITION printf("%s, Bad partition index:%d for partition:%s\n", __func__, mmc_dos_partition_index, name); +#endif return -1; } |