• Ye Li's avatar
    MLK-19356 fastboot: Fix ucmd issue in fastboot · a8569856
    Ye Li authored
    After executing each ucmd, the ucmd callback function always call fastboot_setup
    to setup some enviroments.
    
    Because the mmc will be switched to user area by calling blk_get_dev in _fastboot_load_partitions.
    When running "mmc partconf" by ucmd, the PART_CONFIG EXTCSD is updated, but the part_config and
    hwpart variables in mmc and blk structure are not synced. So the old value will write to
    PART_CONFIG EXTCSD again when switch to user area.
    
    This patch changes the fastboot_setup, only load the partitions when the storage device is changed.
    Also force to re-init mmc before loading the partitions to sync mmc variables.
    Signed-off-by: default avatarYe Li <ye.li@nxp.com>
    (cherry picked from commit c9cd93b25586ecd4ce9178da7b8141f60cdd9deb)
    a8569856
Name
Last commit
Last update
..
udc Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
at91_udc.c Loading commit data...
at91_udc.h Loading commit data...
atmel_usba_udc.c Loading commit data...
atmel_usba_udc.h Loading commit data...
bcb.c Loading commit data...
bcb.h Loading commit data...
bcm_udc_otg.h Loading commit data...
bcm_udc_otg_phy.c Loading commit data...
ci_udc.c Loading commit data...
ci_udc.h Loading commit data...
command.c Loading commit data...
composite.c Loading commit data...
config.c Loading commit data...
core.c Loading commit data...
designware_udc.c Loading commit data...
dwc2_udc_otg.c Loading commit data...
dwc2_udc_otg_phy.c Loading commit data...
dwc2_udc_otg_priv.h Loading commit data...
dwc2_udc_otg_regs.h Loading commit data...
dwc2_udc_otg_xfer_dma.c Loading commit data...
ep0.c Loading commit data...
ep0.h Loading commit data...
epautoconf.c Loading commit data...
ether.c Loading commit data...
f_dfu.c Loading commit data...
f_dfu.h Loading commit data...
f_fastboot.c Loading commit data...
f_mass_storage.c Loading commit data...
f_sdp.c Loading commit data...
f_thor.c Loading commit data...
f_thor.h Loading commit data...
fastboot_lock_unlock.c Loading commit data...
fastboot_lock_unlock.h Loading commit data...
fotg210.c Loading commit data...
g_dnl.c Loading commit data...
gadget_chips.h Loading commit data...
mpc8xx_udc.c Loading commit data...
ndis.h Loading commit data...
pxa25x_udc.c Loading commit data...
pxa25x_udc.h Loading commit data...
pxa27x_udc.c Loading commit data...
rndis.c Loading commit data...
rndis.h Loading commit data...
storage_common.c Loading commit data...
u_os_desc.h Loading commit data...
usbstring.c Loading commit data...