aboutsummaryrefslogtreecommitdiff
path: root/ubi-utils/ubicrc32.c
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2011-12-09 11:45:14 -0800
committerArtem Bityutskiy <Artem.Bityutskiy@linux.intel.com>2011-12-12 23:45:54 +0200
commitec985197e7cd6ec33f41273bff7afd4c4f454b87 (patch)
tree3c5e73913d93dc701c07eecbc2343239de06b18f /ubi-utils/ubicrc32.c
parent44bf457d63085c0eafc6f2504bf8535183d4395c (diff)
libmtd: allow write operations when MEMWRITE is not supported
MEMWRITE is a recently introduced write interface for MTD; however, it is only supported on NAND flash. mtd-utils should fall back to old write methods when either ENOTTY or EOPNOTSUPP are returned. This is a showstopper when, for instance, using ubiformat on NOR, which don't have a mtd->write_oob interface (and thus don't support MEMWRITE): ubiformat: formatting eraseblock 2 -- 1 % complete libmtd: error!: MEMWRITE ioctl failed for eraseblock 2 (mtd3) error 122 (Operation not supported) Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Diffstat (limited to 'ubi-utils/ubicrc32.c')
0 files changed, 0 insertions, 0 deletions