summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-11-22 01:33:40 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-11-22 01:33:40 +0000
commita2441cef65161f5d5b4b7a80de8379173a0d04cc (patch)
tree308146989b09e70b55e8fb08efff1a19cb07420c /flashrom.c
parenta4a9bfb2284403d44589b26700e1f8add3013352 (diff)
downloadast2050-flashrom-a2441cef65161f5d5b4b7a80de8379173a0d04cc.zip
ast2050-flashrom-a2441cef65161f5d5b4b7a80de8379173a0d04cc.tar.gz
ft2232_spi: add some error handling
Pretty much everybody who used the FT2232 SPI driver had problems with incorrect reads from time to time. One reason was that the hardware is pretty timing sensitive even for reads. The other reason was that the code silently ignored errors. This patch doesn't add any error recovery, but it will emit error messages if FT2232 communication goes wrong. That allows us to track down errors without investing hours in driver debugging. Thanks to Jeremy Buseman <naviathan@gmail.com> for testing. He found out that certain libftdi/libusb/kernel/hardware combinations drop some bytes without returning any error codes. Corresponding to flashrom svn r769. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Paul Fox <pgf@laptop.org>
Diffstat (limited to 'flashrom.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud