mtd: docg3 reduce read alignment burden
authorRobert Jarzmik <robert.jarzmik@free.fr>
Sun, 11 Mar 2012 10:28:45 +0000 (11:28 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 26 Mar 2012 23:53:43 +0000 (00:53 +0100)
commitd107bc34f4953852834f086968fc7963125d6943
tree1745742d24f175f88b2c8cf51acaa87b2ad45982
parentcfe781946dac7f5ff42e23cd7054c75e7201fbdc
mtd: docg3 reduce read alignment burden

The read function was so far requiring the reads to be aligned on page
boundaries, and be page length multiples in size. Relieve these
constraints to ease the userspace ubifs programs runs, which read ubifs
headers of 64 bytes.

Artem: squashed a later fix from Robert Jarzmik into this patch.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/devices/docg3.c