From: Aaron Sierra Date: Thu, 25 Sep 2014 17:20:24 +0000 (-0500) Subject: mtd: map_rom: Support UBI on ROM X-Git-Tag: fixes-v4.0-rc1~67^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6958024ad5cdd78deae4da47a8722b06317dff45;p=pandora-kernel.git mtd: map_rom: Support UBI on ROM UBI needs to know the physical erase block size, even on read-only devices, since it defines the on-device layout. Use a device-tree provided value to support previously written UBI on read-only NOR. UBI also needs a non-zero writebufsize, so we set it to one. Note: This was implemented because hardware write-protected CFI NOR cannot be probed for the physical erase block size. Signed-off-by: Joe Schultz Signed-off-by: Aaron Sierra [Brian: removed unneeded #ifdef, note 'optional' erase-size property] Signed-off-by: Brian Norris --- Reading git-diff-tree failed