Comments

The sequence number is a 16 bit counter; make sure we
handle rollover correctly. This fixes the wrong transfers for
large (> 256MB) images.
Also utilize a variable to handle initialization, so that we
don't rely on just the counter sent by the host.
Signed-off-by: Pantelis Antoniou <panto@antoniou-consulting.com>
---
drivers/dfu/dfu.c | 42 +++++++++++++++++++++++++++++++++++++-----
drivers/dfu/dfu_mmc.c | 3 +++
include/dfu.h | 2 ++
3 files changed, 42 insertions(+), 5 deletions(-)

Dear Pantelis Antoniou,
> The sequence number is a 16 bit counter; make sure we> handle rollover correctly. This fixes the wrong transfers for> large (> 256MB) images.> > Also utilize a variable to handle initialization, so that we> don't rely on just the counter sent by the host.
[...]
Uh, how come this doesn't apply ? Am I doing something wrong or is it the patch?
:(
Best regards,
Marek Vasut