[PATCH 02/13] mtd: ubi: Set max_write_size to actual value read from flash
Alexander Stein
alexander.stein at systec-electronic.com
Thu Mar 17 03:00:18 PDT 2016
Currently max_write_size is set to minimal I/O size. Set to buffer size
read from flash. Required by UBIFS recovery which uses max_write_size
for error detection.
Signed-off-by: Alexander Stein <alexander.stein at systec-electronic.com>
---
drivers/mtd/ubi/build.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c
index 7970226..268cc6f 100644
--- a/drivers/mtd/ubi/build.c
+++ b/drivers/mtd/ubi/build.c
@@ -327,7 +327,7 @@ static int io_init(struct ubi_device *ubi, int max_beb_per1024)
ubi_assert(ubi->hdrs_min_io_size <= ubi->min_io_size);
ubi_assert(ubi->min_io_size % ubi->hdrs_min_io_size == 0);
- ubi->max_write_size = ubi->mtd->writesize; /* FIXME: writebufsize */
+ ubi->max_write_size = ubi->mtd->writebufsize;
/*
* Maximum write size has to be greater or equivalent to min. I/O
* size, and be multiple of min. I/O size.
--
2.7.3
More information about the barebox
mailing list