mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
4a5594fa20
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:
|
||
---|---|---|
.. | ||
bbm.h | ||
concat.h | ||
doc2000.h | ||
flashchip.h | ||
fsl_upm.h | ||
fsmc_nand.h | ||
mtd.h | ||
nand.h | ||
nand_bch.h | ||
nand_ecc.h | ||
ndfc.h | ||
omap_elm.h | ||
omap_gpmc.h | ||
onenand.h | ||
onenand_regs.h | ||
partitions.h | ||
rawnand.h | ||
samsung_onenand.h | ||
spinand.h | ||
st_smi.h | ||
ubi.h |