Dear Ilya,

In message <[EMAIL PROTECTED]> you wrote:
> This patch adds sector_size field to part_info structure (used
> by new JFFS2 code).
...
> @@ -359,6 +361,11 @@ static int part_validate_nor(struct mtdids *id, struct 
> part_info *part)
>  
>       end_offset = part->offset + part->size;
>       for (i = 0; i < flash->sector_count; i++) {
> +             if (i) {
> +                     sector_size = flash->start[i] - flash->start[i-1];
> +                     if (part->sector_size < sector_size)
> +                             part->sector_size = sector_size;
> +             }

What about the size of the last sector?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
God is real, unless declared integer.
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to