Re: [U-Boot] [PATCH] CFI: fix eraseregions numblocks

2010-02-02 Thread Stefan Roese
On Thursday 28 January 2010 12:27:14 Ladislav Michl wrote: > From: Ladislav Michl > > eraseregions numblocks was sometimes one less than actual, possibly > producing erase regions with zero blocks. As MTD code touches eraseregions > only if numeraseregions is greater that zero, allocate erasere

[U-Boot] [PATCH] CFI: fix eraseregions numblocks

2010-01-28 Thread Ladislav Michl
From: Ladislav Michl eraseregions numblocks was sometimes one less than actual, possibly producing erase regions with zero blocks. As MTD code touches eraseregions only if numeraseregions is greater that zero, allocate eraseregions only for non uniform erase size flash. Signed-off-by: Ladislav M