Re: [U-Boot] [PATCH v5 2/5] mtd: add an mtd method for get_len_incl_bad()

2010-08-31 Thread Ben Gardiner
On Mon, Aug 30, 2010 at 4:57 PM, Scott Wood wrote: > On Mon, 30 Aug 2010 13:38:57 -0400 > Ben Gardiner wrote: >> +void mtd_get_len_incl_bad(struct mtd_info *mtd, uint64_t offset, >> +                       const uint64_t length, uint64_t *len_incl_bad, >> +                       int *truncated) >

Re: [U-Boot] [PATCH v5 2/5] mtd: add an mtd method for get_len_incl_bad()

2010-08-30 Thread Scott Wood
On Mon, 30 Aug 2010 13:38:57 -0400 Ben Gardiner wrote: > The logic to 'spread' mtd partitions needs to calculate the length in > the mtd device, including bad blocks. > > This patch introduces a new function, mtd_get_len_incl_bad that can > return both the length including bad blocks and whether

[U-Boot] [PATCH v5 2/5] mtd: add an mtd method for get_len_incl_bad()

2010-08-30 Thread Ben Gardiner
The logic to 'spread' mtd partitions needs to calculate the length in the mtd device, including bad blocks. This patch introduces a new function, mtd_get_len_incl_bad that can return both the length including bad blocks and whether that length was truncated on the device. This new function will be