mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
In addition to mtd_block_isbad(), which checks if a block is bad or reserved, it's needed to check if a block is reserved only (but not bad). This commit adds an MTD interface for it, in a similar fashion to mtd_block_isbad(). While here, fix mtd_block_isbad() so the out-of-bounds checking is done before the callback check. Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Tested-by: Pekon Gupta <pekon@ti.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com> [scottwood: Cherry-picked from Linux 8471bb73ba10ed67] Signed-off-by: Scott Wood <scottwood@freescale.com> |
||
---|---|---|
.. | ||
byteorder | ||
mtd | ||
unaligned | ||
usb | ||
apm_bios.h | ||
bch.h | ||
bitops.h | ||
bitrev.h | ||
compat.h | ||
compiler-clang.h | ||
compiler-gcc.h | ||
compiler-gcc3.h | ||
compiler-gcc4.h | ||
compiler-gcc5.h | ||
compiler-intel.h | ||
compiler.h | ||
crc7.h | ||
crc8.h | ||
crc32.h | ||
ctype.h | ||
drm_dp_helper.h | ||
edd.h | ||
err.h | ||
ethtool.h | ||
fb.h | ||
immap_qe.h | ||
input.h | ||
io.h | ||
ioctl.h | ||
ioport.h | ||
kbuild.h | ||
kconfig.h | ||
kernel.h | ||
linkage.h | ||
linux_string.h | ||
list.h | ||
list_sort.h | ||
lzo.h | ||
math64.h | ||
mbus.h | ||
mc146818rtc.h | ||
mdio.h | ||
mii.h | ||
netdevice.h | ||
poison.h | ||
posix_types.h | ||
rbtree.h | ||
rbtree_augmented.h | ||
screen_info.h | ||
serial_reg.h | ||
sizes.h | ||
stat.h | ||
stddef.h | ||
string.h | ||
stringify.h | ||
time.h | ||
types.h |