aboutsummaryrefslogtreecommitdiffstats
path: root/flashchips.c
diff options
context:
space:
mode:
authorEdward O'Callaghan <quasisec@google.com>2020-03-05 14:56:47 +1100
committerEdward O'Callaghan <quasisec@chromium.org>2020-03-11 06:24:10 +0000
commit2141250162934159f1158c640e0737e872fccb5b (patch)
tree54691c71f72c0445d6259e12caad81bed75870d1 /flashchips.c
parente8c0ee7c7eb93225de1bb0d16d8bbeda4f3ed542 (diff)
downloadflashrom-2141250162934159f1158c640e0737e872fccb5b.tar.gz
flashrom-2141250162934159f1158c640e0737e872fccb5b.tar.bz2
flashrom-2141250162934159f1158c640e0737e872fccb5b.zip
raiden_debug_spi.c: Implement retry mechanism
This overcomes a problem with the ServoMicro where USB packets can be ack'd by the device without triggering interrupts or loading data into the USB endpoints. The retry mechanism attempts the USB read 3 times before reattempting the write call to avoid performing multiple SPI transfers due to a USB problem. This process repeats 3 times before we return the last error code. Intermediary problems are reported in the status code. Based off the downstream commit: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/2038271 Change-Id: I76cde68852fa4963582d57c7dcb9f24de32c6da8 Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/39310 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'flashchips.c')
0 files changed, 0 insertions, 0 deletions