Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1462155 > unrolled thread
| Started by | Boris Brezillon <boris.brezillon@free-electrons.com> |
|---|---|
| First post | 2016-08-14 17:50 +0200 |
| Last post | 2016-08-14 17:50 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH] mtd: nand: gpmi: get correct free oob space Boris Brezillon <boris.brezillon@free-electrons.com> - 2016-08-14 17:50 +0200
| From | Boris Brezillon <boris.brezillon@free-electrons.com> |
|---|---|
| Date | 2016-08-14 17:50 +0200 |
| Subject | Re: [PATCH] mtd: nand: gpmi: get correct free oob space |
| Message-ID | <s65PH-1sD-3@gated-at.bofh.it> |
On Tue, 12 Apr 2016 17:06:33 -0500 Han Xu <han.xu@nxp.com> wrote: > change the way to calculate pagesize to get correct free oob space for > legacy_set_geometry function. > Applied (sorry for the delay, it seems this patch felt through the cracks). Thanks, Boris > Signed-off-by: Han Xu <han.xu@nxp.com> > --- > drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c > index 316b5ac..bda77a9 100644 > --- a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c > +++ b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c > @@ -319,7 +319,8 @@ static int legacy_set_geometry(struct gpmi_nand_data *this) > return -EINVAL; > } > > - geo->page_size = mtd->writesize + mtd->oobsize; > + geo->page_size = mtd->writesize + geo->metadata_size + > + (geo->gf_len * geo->ecc_strength * geo->ecc_chunk_count) / 8; > geo->payload_size = mtd->writesize; > > /*
Back to top | Article view | linux.kernel
csiph-web