[U-Boot] [PATCH v2 6/7] dfu, nand, ubi: fix erasing after write finish

Lukasz Majewski l.majewski at samsung.com
Tue May 31 16:43:41 CEST 2016


Hi Heiko,

> +		off = dfu->offset;
> +		if ((off & (mtd->erasesize - 1)) != 0) {
> +			/*
> +			 * last write ended with unaligned length
> +			 * sector is erased, jump to next
> +			 */
> +			off = off & ~((mtd->erasesize - 1));
> +			off += mtd->erasesize;
> +		}
> +		opts.offset = dfu->data.nand.start + off +

Acked-by: Lukasz Majewski <l.majewski at samsung.com>

-- 
Best regards,

Lukasz Majewski

Samsung R&D Institute Poland (SRPOL) | Linux Platform Group


More information about the U-Boot mailing list