rv1126-uboot/include
Boris Brezillon ef964b0175 UPSTREAM: mtd: Don't stop MTD partition creation when it fails on one device
MTD partition creation code is a bit tricky. It tries to figure out
when things have changed (either MTD dev list or mtdparts/mtdids vars)
and when that happens it first deletes all the partitions that had been
previously created and then creates the new ones based on the new
mtdparts/mtdids values.
But before deleting the old partitions, it ensures that none of the
currently registered parts are being used and bails out when that's
not the case. So, we end up in a situation where, if at least one MTD
dev has one of its partitions used by someone (UBI for instance), the
partitions update logic no longer works for other devs.

Rework the code to relax the logic and allow updates of MTD parts on
devices that are not being used (we still refuse to updates parts on
devices who have at least one of their partitions used by someone).

Fixes: 5db66b3aee6f ("cmd: mtd: add 'mtd' command")
Change-Id: I789ff4aef0fa6e25a85e48ef7a98cfcead4b81bb
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Tested-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
(cherry picked from commit 4a5594fa20d0fa6479f477d2bd67967aca201c2f)
2019-07-05 19:33:47 +08:00
..
andestech
android_avb lib: avb: add init ab metadata interface 2019-04-29 11:05:35 +08:00
asm-generic arm: bootm: use flushc() to flush console data before linux 2019-05-09 16:24:04 +08:00
bedbug
cavium
configs UPSTREAM: mtd: move NAND files into a raw/ subdirectory 2019-07-05 19:33:44 +08:00
cramfs
dm dm: core: add function dev_write_u32_array() to write u32 array values 2019-06-14 18:22:36 +08:00
drm video/drm: Sync MIPI DSI Bus helper from Linux 4.9 2019-02-15 11:37:45 +08:00
dt-bindings clk: rockchip: rk3308: Make DCLK_VOP clock id consistent with kernel 2019-04-16 09:06:52 +08:00
environment/ti
faraday
fsl-mc
jffs2
linux UPSTREAM: mtd: Don't stop MTD partition creation when it fails on one device 2019-07-05 19:33:47 +08:00
lzma
mtd UPSTREAM: mtd: cfi: Add support for status register polling 2019-07-05 19:20:53 +08:00
net
optee_include lib: optee_client: do not init RK FS if security not exist 2019-03-15 15:28:38 +08:00
pcmcia
power dm: regulator: add "regulator-loader-ignore" property support 2019-06-03 18:25:08 +08:00
rockchip crypto: add rockchip crypto v2 driver 2019-06-06 14:59:32 +08:00
samsung
spmi
synopsys
tee
test
u-boot
usb UPSTREAM: bitops: collect BIT macros to include/linux/bitops.h 2018-01-17 15:27:28 +08:00
zfs
.gitignore
ACEX1K.h
MCD_dma.h
MCD_progCheck.h
MCD_tasksInit.h
SA-1100.h
_exports.h
adc.h
addr_map.h
ahci.h
ali512x.h
altera.h
amp.h dm: add amp uclass and rockchip amp driver support 2019-04-08 20:53:44 +08:00
android_ab.h
android_bootloader.h common: android: avb support load android image separate 2019-05-22 15:34:12 +08:00
android_bootloader_message.h
android_cmds.h
android_image.h android: update android image header to support new version 2018-08-06 11:15:19 +08:00
ansi.h
api.h
api_public.h
armcoremodule.h
asm-offsets.h
ata.h
atf_common.h
atmel_hlcdc.h
atmel_lcd.h
atmel_lcdc.h
atmel_mci.h
atsha204a-i2c.h
attestation_key.h Attestation key: write attestation key to secure storage 2018-11-21 10:11:40 +08:00
autoboot.h
axp152.h
axp209.h
axp221.h
axp809.h
axp818.h
axp_pmic.h
backlight.h
bcd.h
bidram.h lib: introduce bidram for GD board bi_dram[] memory management 2019-03-26 11:04:33 +08:00
bios_emul.h
bitfield.h
blk.h mtd: support mtd block model 2019-06-05 14:47:56 +08:00
bmp_layout.h
boot_fit.h
boot_rkimg.h common: rkimg: clear boot mode register when its value is not reboot reason 2019-07-01 15:47:04 +08:00
bootcount.h
bootm.h
bootretry.h
bootstage.h
bouncebuf.h
bus_vcxk.h
bzlib.h
cbfs.h
charset.h
circbuf.h
cli.h
cli_hush.h
clk-uclass.h clk: add clk_set_parent() 2018-02-24 19:02:43 +08:00
clk.h rockchip: board: probe clks after load kernel dtb 2018-05-25 11:46:18 +08:00
cmd_spl.h
command.h
common.h dm: console/serial: add flushc() support 2019-05-09 16:23:55 +08:00
common_timing_params.h
commproc.h
compiler.h
config_defaults.h
config_distro_bootcmd.h
config_distro_defaults.h
config_fallbacks.h include/config_fallbacks.h: add CONFIG_RKFLASH for fallback HAVE_BLOCK_DEVICE 2018-07-18 15:52:38 +08:00
config_fsl_chain_trust.h
config_phylib_all_drivers.h
config_uncmd_spl.h
console.h common: console: optimize console record 2019-05-09 18:07:45 +08:00
cortina.h
cpsw.h
cpu.h
crc.h
cros_ec.h
cros_ec_message.h
crypto.h crypto: add rockchip crypto v2 driver 2019-06-06 14:59:32 +08:00
ddr_spd.h
debug_uart.h debug_uart: add a printdec() to print decimalism result 2018-07-19 09:57:48 +08:00
dfu.h
dialog_pmic.h
display.h
display_options.h
div64.h
dm-demo.h
dm.h
dm9000.h
dma.h
dp83848.h
drm_modes.h video/drm: add panel node parameters for screen rotate 2019-06-11 09:30:25 +08:00
ds1722.h
dt-structs.h
dt_table.h UPSTREAM: Import Android's dt_table.h for DT image format 2018-08-06 11:15:19 +08:00
dvfs.h dm: add dvfs uclass and wide temperature dvfs support 2018-12-10 18:03:51 +08:00
dw_hdmi.h
dwc3-omap-uboot.h
dwc3-uboot.h usb: dwc3: init phy utmi width in platform data 2018-06-28 16:24:34 +08:00
dwc_ahsata.h
dwmmc.h mmc: dw_mmc: set DWMCI_MSIZE to 6 2018-10-19 15:27:57 +08:00
e500.h
ec_commands.h
edid.h drm: Transplant dw-hdmi code from rkdevelop 2018-08-15 10:10:19 +08:00
eeprom_field.h
eeprom_layout.h
efi.h
efi_api.h
efi_loader.h
elf.h
env_attr.h
env_callback.h
env_default.h env_default: add "silent=enable" when CONFIG_SILENT_CONSOLE enabled 2018-06-15 16:48:11 +08:00
env_flags.h
environment.h env: add a common env driver for block device 2019-05-24 11:35:28 +08:00
errno.h
ethsw.h
exports.h
ext4fs.h
ext_common.h
exynos_lcd.h
fastboot.h fastboot: split cb_getvar into dedicate functions 2018-08-17 11:45:16 +08:00
fat.h
fb_mmc.h fastboot: get mmc erase group size for fastboot 2018-08-13 09:58:31 +08:00
fb_nand.h
fdt.h
fdt_simplefb.h
fdt_support.h UPSTREAM: libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-12-24 17:20:37 +08:00
fdtdec.h UPSTREAM: libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-12-24 17:20:37 +08:00
fis.h
flash.h UPSTREAM: flash: Fix spelling of "ERR_TIMOUT" 2019-07-05 19:33:35 +08:00
fm_eth.h
fpga.h
fs.h fs: add api to get the name of filesystem type 2018-03-06 15:33:28 +08:00
fs_internal.h
fsl_csu.h
fsl_dcu_fb.h
fsl_ddr.h
fsl_ddr_dimm_params.h
fsl_ddr_sdram.h
fsl_ddrc_version.h
fsl_devdis.h
fsl_diu_fb.h
fsl_dspi.h
fsl_dtsec.h
fsl_errata.h
fsl_esdhc.h
fsl_fman.h
fsl_ifc.h UPSTREAM: mtd: nand: fsl_ifc: Fix eccstat array overflow for IFC ver >= 2.0.0 2019-07-05 19:33:37 +08:00
fsl_immap.h
fsl_lpuart.h
fsl_mdio.h
fsl_memac.h
fsl_mmdc.h
fsl_pmic.h
fsl_qe.h
fsl_sec.h
fsl_sec_mon.h
fsl_secboot_err.h
fsl_sfp.h
fsl_tgec.h
fsl_usb.h
fsl_validate.h
fsl_wdog.h
fuse.h
g_dnl.h
gdsys_fpga.h
generic-phy.h
gt64120.h
hash.h
hexdump.h UPSTREAM: lib: Add hexdump 2019-07-05 19:33:39 +08:00
hw_sha.h
hwconfig.h
i2c.h
i2c_eeprom.h
i2s.h
i8042.h
ide.h
image-android-dt.h image: android-dt: add dt_for_each_entry() to iterate over all dt entry of DT image 2018-08-06 11:15:19 +08:00
image-sparse.h
image.h common: android: avb support load android image separate 2019-05-22 15:34:12 +08:00
imx_thermal.h
imximage.h
init_helpers.h
initcall.h
input.h
inttypes.h
io-domain.h power: rockchip: add io-domain driver 2018-12-24 16:44:06 +08:00
iomem.h rockchip: add iomem show interface 2018-07-18 16:33:02 +08:00
iomux.h
ioports.h
iotrace.h
ipu_pixfmt.h
irq-generic.h irq: clean up code 2019-02-25 14:29:34 +08:00
irq-platform.h rockchip: rk3368: Use timer0 as timer_irq 2019-03-29 10:39:22 +08:00
key.h dm: key: add pwrkey download support 2019-06-18 08:39:39 +08:00
key_matrix.h
keyboard.h
keymaster.h lib: optee_client: Extract keymaster CA module 2019-01-18 09:09:34 +08:00
kgdb.h
lattice.h
lcd.h
lcd_console.h
lcdvideo.h
ld9040.h
led-display.h
led.h
libata.h
libtizen.h
linker_lists.h
linux_logo.h
lmb.h include: lmb: increase MAX_LMB_REGIONS to 16 2019-03-22 09:46:06 +08:00
log.h UPSTREAM: dm: spi: Add logging of some return values 2019-07-05 19:33:45 +08:00
lxt971a.h
lynxkdi.h
mailbox-uclass.h
mailbox.h
malloc.h
mapmem.h
mb862xx.h
mc9sdz60.h
mc13783.h
mc13892.h
mc34704.h
memalign.h
memblk.h lib: sysmem: add M_ATTR_CACHELINE_ALIGN support 2019-06-26 11:23:03 +08:00
membuff.h
menu.h
micrel.h
mii_phy.h
miiphy.h
mipi_display.h include: mipi_display: Add new DCS commands in the enum list 2019-02-15 11:36:36 +08:00
misc.h
mk48t59.h
mmc.h mmc: add init_retry 2018-10-19 15:27:57 +08:00
mpc8xx.h
mpc8xx_irq.h
mpc83xx.h
mpc85xx.h
mpc86xx.h
mpc106.h
msc01.h
mtd.h UPSTREAM: cmd: mtd: add 'mtd' command 2019-07-05 19:33:44 +08:00
mtd_blk.h mtd: mtd_blk: parse the block part info to mtd part info 2019-06-24 16:17:39 +08:00
mtd_node.h
mv88e6352.h
mvebu_mmc.h
mvmfp.h
nand.h UPSTREAM: mtd: nand: Rename nand.h into rawnand.h 2019-07-05 19:21:04 +08:00
net.h
netdev.h
ns16550.h
ns87308.h
nuvoton_nct6102d.h
nvme.h
of_live.h
onenand_uboot.h
optee_test.h cmd: add test case for secure storage 2019-02-14 19:58:09 +08:00
os.h
palmas.h
panel.h
part.h disk: part: add interface to get partition type 2018-11-29 20:40:09 +08:00
part_efi.h UPSTREAM: part: efi: Add a Kconfig option for the number of partition entries 2018-01-17 15:27:28 +08:00
pc_keyb.h
pca953x.h
pca9564.h
pca9698.h
pch.h
pci.h
pci_gt64120.h
pci_ids.h
pci_msc01.h
pci_rom.h
pcmcia.h
pe.h
phy.h
phys2bus.h
physmem.h
post.h Drop the log buffer 2018-01-17 15:27:28 +08:00
power-domain-uclass.h
power-domain.h
ppc_asm.tmpl
ppc_defs.h
ps2mult.h
pwm.h
pwrseq.h
pxa_lcd.h
qfw.h
radeon.h
ram.h
ramdisk.h dm: ramdisk: remove unused function 2018-12-19 17:08:21 +08:00
rc.h
rc4.h
regmap.h
reiserfs.h
relocate.h
remoteproc.h
reset-uclass.h
reset.h
rk_timer_irq.h rockchip: rk3368: Use timer0 as timer_irq 2019-03-29 10:39:22 +08:00
rknand.h
rksfc.h cmd: rksfc: add sfc u-boot command 2018-05-11 11:08:38 +08:00
rockchip_debugger.h rockchip: add interrupt debugger to dump pt_regs 2018-06-13 10:56:38 +08:00
rockchip_ir.h
rockusb.h usb: rockusb: forbid reading data beyond addr 32MB 2019-02-25 17:14:46 +08:00
rtc.h rtc: add rk8xx rtc support 2019-02-25 10:08:47 +08:00
rtc_def.h
s6e63d6.h
s_record.h
samsung-usb-phy-uboot.h
sandbox-adc.h
sandboxblockdev.h
sandboxfs.h
sata.h
scf0403_lcd.h
scsi.h
sdhci.h
sdp.h
search.h
serial.h
sh_pfc.h
sh_tmu.h
sja1000.h
slre.h
smbios.h
smsc_lpc47m.h
smsc_sio1007.h
sound.h sound: rockchip: add support for i2s 2018-09-25 19:32:33 +08:00
sparse_defs.h
sparse_format.h
spartan2.h
spartan3.h
spd.h
spd_sdram.h
spi.h UPSTREAM: drivers: spi: consider command bytes when sending transfers 2019-07-05 19:21:04 +08:00
spi_flash.h UPSTREAM: sf: Add a method to obtain the block-protect setting 2019-07-05 19:33:46 +08:00
spl.h common: spl: atf: add bl32/bl33 entry point to struct spl_image_info 2019-06-13 12:21:29 +08:00
spl_rkfw.h rockchip: spl: add rockchip image load support 2019-06-14 09:27:54 +08:00
splash.h
stacktrace.h arm: lib: add arm32/64 stacktrace support 2019-02-13 09:04:23 +08:00
status_led.h
stdio.h dm: console/serial: add flushc() support 2019-05-09 16:23:55 +08:00
stdio_dev.h dm: console/serial: add flushc() support 2019-05-09 16:23:55 +08:00
stdlib.h lib: add stdlib.c 2019-07-01 19:17:50 +08:00
stratixII.h
sy8106a.h
sym53c8xx.h
syscon.h
sysmem.h lib: sysmem: add sysmem overflow check support 2019-06-26 11:23:12 +08:00
sysreset.h
tables_csum.h
tca642x.h
tegra-kbc.h
thermal.h
thor.h
ti-usb-phy-uboot.h
time.h
timer.h
timestamp.h
tmu.h
tpm.h
tps6586x.h
trace.h
tsec.h
tsi108.h
tsi148.h
twl4030.h
twl6030.h
ubi_uboot.h
ubifs_uboot.h
ubispl.h
uboot_aes.h
universe.h
usb.h
usb_cdc_acm.h
usb_defs.h
usb_ether.h
usb_mass_storage.h
usbdescriptors.h
usbdevice.h
usbroothubdes.h
uuid.h
vbe.h
version.h
video.h
video_bridge.h UPSTREAM: dm: video: bridge: add operation to read EDID 2018-12-26 18:45:34 +08:00
video_console.h
video_easylogo.h
video_fb.h
video_font.h
video_font_4x6.h
video_font_data.h
video_logo.h
video_rockchip.h rockchip: display: enable rockchip_display_fixup() 2018-02-23 10:28:27 +08:00
virtex2.h
vsc7385.h
vsc9953.h
vsprintf.h
vxworks.h
w83c553f.h
wait_bit.h UPSTREAM: wait_bit: use wait_for_bit_le32 and remove wait_for_bit 2019-07-05 19:21:04 +08:00
watchdog.h
wdt.h
winbond_w83627.h
write_keybox.h common: write keybox: Add readback check interface 2019-01-31 11:08:44 +08:00
xilinx.h
xyzModem.h
zfs_common.h
zynqmppl.h
zynqpl.h