From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC PATCH 1/2] usb: dfu: decrease dfu->r_left along with the transfer
Date: Sat, 19 Oct 2013 02:44:18 +0200 [thread overview]
Message-ID: <201310190244.18515.marex@denx.de> (raw)
In-Reply-To: <1381915599-27906-1-git-send-email-voice.shen@atmel.com>
Hi,
> The value of dfu->r_left need decrease along with the transfer
>
> Signed-off-by: Bo Shen <voice.shen@atmel.com>
Lucasz/Heiko , can you ACK/NAK this and 2/2 ? Thanks!
> ---
> drivers/dfu/dfu.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c
> index 56b21c7..65c6984 100644
> --- a/drivers/dfu/dfu.c
> +++ b/drivers/dfu/dfu.c
> @@ -229,6 +229,7 @@ static int dfu_read_buffer_fill(struct dfu_entity *dfu,
> void *buf, int size) dfu->crc = crc32(dfu->crc, buf, chunk);
> dfu->i_buf += chunk;
> dfu->b_left -= chunk;
> + dfu->r_left -= chunk;
> size -= chunk;
> buf += chunk;
> readn += chunk;
Best regards,
Marek Vasut
next prev parent reply other threads:[~2013-10-19 0:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-16 9:26 [U-Boot] [RFC PATCH 1/2] usb: dfu: decrease dfu->r_left along with the transfer Bo Shen
2013-10-16 9:26 ` [U-Boot] [RFC PATCH 2/2] usb: dfu: correct dfu buffer inited value Bo Shen
2013-11-04 10:17 ` Lukasz Majewski
2013-11-05 9:48 ` Bo Shen
2013-11-06 8:54 ` Lukasz Majewski
2013-11-06 13:51 ` Marek Vasut
2013-10-19 0:44 ` Marek Vasut [this message]
2013-10-21 22:24 ` [U-Boot] [RFC PATCH 1/2] usb: dfu: decrease dfu->r_left along with the transfer Lukasz Majewski
2013-10-22 2:42 ` Marek Vasut
2013-11-01 1:18 ` Bo Shen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201310190244.18515.marex@denx.de \
--to=marex@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox