Message ID | 1331461726-10087-2-git-send-email-robert.jarzmik@free.fr |
---|---|
State | New, archived |
Headers | show |
On Sun, 2012-03-11 at 11:28 +0100, Robert Jarzmik wrote: > The docg3 drivers lacked mtd writebufsize initialization. Without it, > ubifs cannot work. > > Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> I think I've already done this in the l2-mtd.git tree. I strongly recommend you to test on top of the l2-mtd.git because it has the latest stuff.
Artem Bityutskiy <dedekind1@gmail.com> writes: > On Sun, 2012-03-11 at 11:28 +0100, Robert Jarzmik wrote: >> The docg3 drivers lacked mtd writebufsize initialization. Without it, >> ubifs cannot work. >> >> Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> > > I think I've already done this in the l2-mtd.git tree. I strongly > recommend you to test on top of the l2-mtd.git because it has the latest > stuff. OK, will do. Cheers.
diff --git a/drivers/mtd/devices/docg3.c b/drivers/mtd/devices/docg3.c index bd9e992..c30b56a 100644 --- a/drivers/mtd/devices/docg3.c +++ b/drivers/mtd/devices/docg3.c @@ -1822,6 +1822,7 @@ static void __init doc_set_driver_info(int chip_id, struct mtd_info *mtd) if (docg3->reliable == 2) mtd->erasesize /= 2; mtd->writesize = DOC_LAYOUT_PAGE_SIZE; + mtd->writebufsize = DOC_LAYOUT_PAGE_SIZE; mtd->oobsize = DOC_LAYOUT_OOB_SIZE; mtd->owner = THIS_MODULE; mtd->erase = doc_erase;
The docg3 drivers lacked mtd writebufsize initialization. Without it, ubifs cannot work. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> --- drivers/mtd/devices/docg3.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)