Upstream Mali merge. MTD, JFFS2 and UBIFS support.