i.mx21 ads nor flash

Sascha Hauer s.hauer at pengutronix.de
Mon Feb 3 03:35:07 EST 2014


On Sun, Feb 02, 2014 at 04:17:22PM +0000, Cristiano De Alti wrote:
> Sascha Hauer <s.hauer at ...> writes:
> 
> > 
> +CONFIG_FS_TFTP=y
> diff --git a/drivers/mtd/nor/cfi_flash.c b/drivers/mtd/nor/cfi_flash.c
> index 71dd3c8..514eab5 100644
> --- a/drivers/mtd/nor/cfi_flash.c
> +++ b/drivers/mtd/nor/cfi_flash.c
> @@ -404,9 +404,9 @@ static ulong flash_get_size (struct flash_info *info)
>                                 erase_region_count, erase_region_size);
>  
>                         region->offset = cur_offset;
> -                       region->erasesize = erase_region_size;
> +                       region->erasesize = erase_region_size * size_ratio;
>                         region->numblocks = erase_region_count;
> -                       cur_offset += erase_region_size * erase_region_count;
> +                       cur_offset += erase_region_size * size_ratio *
> erase_region_count;

The patch looks correct. Could you split the patch into two, one with
the defconfig changes and one with the flash fix and send both with a
"<Signed-off-by>: Cristiano De Alti <cristiano_dealti at hotmail.com>" tag?

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list