• 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: 's avatarYe Li <ye.li@nxp.com>
    (cherry picked from commit c9cd93b25586ecd4ce9178da7b8141f60cdd9deb)
    a8569856
Name
Last commit
Last update
..
adc Loading commit data...
bios_emulator Loading commit data...
block Loading commit data...
bootcount Loading commit data...
clk Loading commit data...
core Loading commit data...
cpu Loading commit data...
crypto Loading commit data...
ddr Loading commit data...
demo Loading commit data...
dfu Loading commit data...
dma Loading commit data...
fpga Loading commit data...
gpio Loading commit data...
hwmon Loading commit data...
i2c Loading commit data...
input Loading commit data...
led Loading commit data...
mailbox Loading commit data...
memory Loading commit data...
misc Loading commit data...
mmc Loading commit data...
mtd Loading commit data...
net Loading commit data...
pch Loading commit data...
pci Loading commit data...
pcmcia Loading commit data...
phy/marvell Loading commit data...
pinctrl Loading commit data...
power Loading commit data...
pwm Loading commit data...
qe Loading commit data...
ram Loading commit data...
remoteproc Loading commit data...
reset Loading commit data...
rtc Loading commit data...
serial Loading commit data...
soc Loading commit data...
sound Loading commit data...
spi Loading commit data...
spmi Loading commit data...
sysreset Loading commit data...
thermal Loading commit data...
timer Loading commit data...
tpm Loading commit data...
twserial Loading commit data...
usb Loading commit data...
video Loading commit data...
watchdog Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...