Nico Huber has uploaded this change for review. ( https://review.coreboot.org/21781
Change subject: dediprog: Fix bug where too many transfers would be queued
......................................................................
dediprog: Fix bug where too many transfers would be queued
We didn't check the total number of queued transfers in the inner most
loop. Up to DEDIPROG_ASYNC_TRANSFERS - 1 invalid transfers could be
queued therefore. So add another check on the total number.
Original-Change-Id: I91a8de47db7107455f5fc63ab2f13a0bd50c5b63
Original-Acked-by: David Hendricks <david.hendricks(a)gmail.com>
Original-Reviewed-on: https://review.coreboot.org/19351
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Nico Huber <nico.h(a)gmx.de>
Change-Id: Ie0d516f0fb2923a772a0ca7020ca5118ab260dc5
Signed-off-by: Nico Huber <nico.huber(a)secunet.com>
---
M dediprog.c
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/81/21781/1
diff --git a/dediprog.c b/dediprog.c
index b7276e5..6f82772 100644
--- a/dediprog.c
+++ b/dediprog.c
@@ -462,7 +462,9 @@
/* Now transfer requested chunks using libusb's asynchronous interface. */
while (!status.error && (status.queued_idx < count)) {
- while ((status.queued_idx - status.finished_idx) < DEDIPROG_ASYNC_TRANSFERS) {
+ while ((status.queued_idx < count) &&
+ (status.queued_idx - status.finished_idx) < DEDIPROG_ASYNC_TRANSFERS)
+ {
transfer = transfers[status.queued_idx % DEDIPROG_ASYNC_TRANSFERS];
libusb_fill_bulk_transfer(transfer, dediprog_handle, 0x80 | dediprog_in_endpoint,
(unsigned char *)buf + status.queued_idx * chunksize, chunksize,
--
To view, visit https://review.coreboot.org/21781
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: stable
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie0d516f0fb2923a772a0ca7020ca5118ab260dc5
Gerrit-Change-Number: 21781
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Keno Fischer has posted comments on this change. ( https://review.coreboot.org/19855 )
Change subject: Initial MX25L25635F support
......................................................................
Patch Set 2:
FWIW, I have this flash chip and was able to read it out just fine using my CH341A programmer by building this branch. Thanks for the work on this. Would love to see it get merged into flashrom proper.
--
To view, visit https://review.coreboot.org/19855
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: staging
Gerrit-MessageType: comment
Gerrit-Change-Id: I292e12d92cdf3961b8d47492a1d5679ff1ea21ce
Gerrit-Change-Number: 19855
Gerrit-PatchSet: 2
Gerrit-Owner: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Keno Fischer
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Timothy Pearson <tpearson(a)raptorengineering.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Fri, 29 Sep 2017 04:38:11 +0000
Gerrit-HasComments: No
David Hendricks has posted comments on this change. ( https://review.coreboot.org/21702 )
Change subject: fixup! nicintel_eeprom: Support for I210 emulated EEprom
......................................................................
Patch Set 2:
Indeed, the buildbot will be very useful!
--
To view, visit https://review.coreboot.org/21702
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: staging
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib7ad5a69244e462f84eae93df9e841716e089b31
Gerrit-Change-Number: 21702
Gerrit-PatchSet: 2
Gerrit-Owner: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Stefan Tauner <stefan.tauner(a)gmx.at>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Wed, 27 Sep 2017 16:31:20 +0000
Gerrit-HasComments: No