rv1126-uboot/include/linux
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
..
byteorder
mtd UPSTREAM: mtd: Don't stop MTD partition creation when it fails on one device 2019-07-05 19:33:47 +08:00
unaligned
usb usb: phy: rockchip: support vbus detect for rk3288 2018-12-18 17:30:47 +08:00
apm_bios.h
arm-smccc.h
bch.h
bitfield.h UPSTREAM: linux/bitfield.h: import <linux/bitfield.h> from Linux 4.13 2018-01-17 15:27:28 +08:00
bitops.h UPSTREAM: bitops: collect BIT macros to include/linux/bitops.h 2018-01-17 15:27:28 +08:00
bitrev.h
bug.h bug.h: move runtime BUG/WARN macros into <linux/bug.h> 2018-01-17 15:27:28 +08:00
build_bug.h UPSTREAM: bug.h: sync BUILD_BUG stuff with Linux 4.13 2018-01-17 15:27:28 +08:00
compat.h UPSTREAM: lib: Add hexdump 2019-07-05 19:33:39 +08:00
compiler-clang.h
compiler-gcc.h
compiler-intel.h
compiler.h UPSTREAM: bug.h: sync BUILD_BUG stuff with Linux 4.13 2018-01-17 15:27:28 +08:00
crc7.h
crc8.h
crc32.h
ctype.h
delay.h
dma-direction.h UPSTREAM: dma: import linux/dma-direction.h to consolidate enum dma_data_direction 2018-01-16 18:13:53 +08:00
drm_dp_helper.h
dw_hdmi.h drm: Transplant dw-hdmi code from rkdevelop 2018-08-15 10:10:19 +08:00
edd.h
err.h
errno.h
ethtool.h
fb.h
hdmi.h drm: Transplant dw-hdmi code from rkdevelop 2018-08-15 10:10:19 +08:00
immap_qe.h
input.h
io.h UPSTREAM: linux/io.h: import generic ioread* / iowrite* accessors from Linux 2018-01-16 18:14:05 +08:00
ioctl.h
iopoll.h
ioport.h
kbuild.h
kconfig.h
kernel.h UPSTREAM: linux/kernel.h: import DIV_ROUND_{DOWN, UP}_ULL from Linux 2018-01-17 15:27:28 +08:00
libfdt.h UPSTREAM: libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2019-07-05 19:33:35 +08:00
libfdt_env.h UPSTREAM: libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-12-24 17:20:37 +08:00
linkage.h
linux_string.h
list.h
list_sort.h
log2.h
lzo.h UPSTREAM: lzo: add a function to check the validity of the header 2018-01-17 15:27:28 +08:00
math64.h
mbus.h
mc146818rtc.h
mdio.h
media-bus-format.h video/drm: add panel node parameters for screen rotate 2019-06-11 09:30:25 +08:00
mii.h
netdevice.h
poison.h
posix_types.h
printk.h UPSTREAM: printk: collect printk stuff into <linux/printk.h> with loglevel support 2018-01-17 15:27:28 +08:00
psci.h
rbtree.h
rbtree_augmented.h
screen_info.h
serial_reg.h
sizes.h rockchip: implement board_lmb_reserve() 2018-11-13 14:07:56 +08:00
stat.h
stddef.h
string.h
stringify.h
time.h UPSTREAM: linux/time.h: Remove dead code 2018-01-17 15:27:28 +08:00
typecheck.h
types.h UPSTREAM: linux/types.h: add typedef of uintptr_t 2018-01-17 15:27:28 +08:00