Erasing 4GB NAND flash
Hi,
I think there's a problem with the definition of struct mtd_info_user in include/linux/mtd/mtd-abi.h. The "size" field should be defined as __u64, to match the corresponding field in struct mtd_info. Otherwise MEMGETINFO ioctl returns invalid flash size for >= 4GiB devices.
Also, looks like flash_eraseall (and maybe others) should be modified to use MEMERASE64 and MEMWRITEOOB64. Is that correct ?
Felix.