1. 15 Jun, 2012 1 commit
  2. 14 Jun, 2012 1 commit
  3. 15 May, 2012 1 commit
  4. 20 Dec, 2011 1 commit
  5. 18 Dec, 2011 1 commit
  6. 20 Oct, 2011 1 commit
  7. 14 Oct, 2011 1 commit
  8. 16 Aug, 2011 1 commit
  9. 15 Aug, 2011 1 commit
  10. 12 Aug, 2011 1 commit
  11. 28 Jul, 2011 1 commit
  12. 21 Jul, 2011 1 commit
    • Uwe Hermann's avatar
      ft2232_spi: Improve error handling, remove exit() calls · 274a20d7
      Uwe Hermann authored
      
      In order to make the ft2232_spi code more usable in libflashrom (e.g. from
      frontends/GUIs) there must not be any exit() calls in the code, as that
      would also terminate the frontend. Thus, replace all exit() calls with
      proper error handling code by returning a _unique_ negative error number,
      so that the frontend (and/or user/developer) can also know a bit more
      exactly _which_ error occured, not only _that_ an error occured.
      
      Also, call ftdi_usb_close() before returning due to errors.
      
      Corresponding to flashrom svn r1377.
      Signed-off-by: default avatarUwe Hermann <uwe@hermann-uwe.de>
      Acked-by: default avatarTadas Slotkus <devtadas@gmail.com>
      274a20d7
  13. 11 Jun, 2011 1 commit
  14. 11 May, 2011 2 commits
  15. 10 Nov, 2010 4 commits
  16. 08 Oct, 2010 1 commit
  17. 06 Oct, 2010 2 commits
  18. 05 Oct, 2010 1 commit
  19. 29 Jul, 2010 2 commits
  20. 27 Jul, 2010 1 commit
    • Carl-Daniel Hailfinger's avatar
      Split off programmer.h from flash.h · 5b997c3e
      Carl-Daniel Hailfinger authored
      
      Programmer specific functions are of absolutely no interest to any file
      except those dealing with programmer specific actions (special SPI
      commands and the generic core).
      
      The new header structure is as follows (and yes, improvements are
      possible):
      flashchips.h  flash chip IDs
      chipdrivers.h  chip-specific read/write/... functions
      flash.h  common header for all stuff that doesn't fit elsewhere
      hwaccess.h hardware access functions
      programmer.h  programmer specific functions
      coreboot_tables.h  header from coreboot, internal programmer only
      spi.h SPI command definitions
      
      Corresponding to flashrom svn r1112.
      Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      Acked-by: default avatarUwe Hermann <uwe@hermann-uwe.de>
      5b997c3e
  21. 14 Jul, 2010 2 commits
  22. 08 Jul, 2010 1 commit
  23. 06 Jul, 2010 1 commit
  24. 03 Jul, 2010 1 commit
  25. 31 May, 2010 1 commit
  26. 21 May, 2010 1 commit
  27. 26 Feb, 2010 1 commit
  28. 10 Jan, 2010 1 commit
  29. 07 Jan, 2010 1 commit
    • Carl-Daniel Hailfinger's avatar
      Allow one to disable programmer debug messages at compile time · 5609fa75
      Carl-Daniel Hailfinger authored
      
      Programmer debug messages during programmer init/shutdown are useful
      because they print hardware settings and desired configuration.
      
      They help in getting a quick overview of hardware and software state on
      startup and shutdown.
      
      Programmer debug messages during flash chip access are mostly a
      distraction in logs and should only be enabled if someone is having
      problems which are suspected to stem from a programmer hardware or
      programmer software bug. Disable those messages by default, they can be
      reenabled by #define COMM_DEBUG in the affected programmer file.
      
      An added benefit is a tremendous size reduction in verbose
      probe/read/write/erase logs because only flash chip driver messages
      remain. In some cases, logs will shrink from 65 MB to 10 kB or less.
      
      The right(tm) fix would be two different debug levels (DEBUG and SPEW)
      and the ability to differentiate between programmer debug messages and
      flash chip debug messages. Until the design for the message printing
      infrastructure is finished, this is the best stop-gap measure we can
      get.
      
      Corresponding to flashrom svn r834.
      Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      Acked-by: default avatarSean Nelson <audioahcked@gmail.com>
      5609fa75
  30. 25 Nov, 2009 1 commit
  31. 22 Nov, 2009 1 commit
    • Carl-Daniel Hailfinger's avatar
      ft2232_spi: add some error handling · a2441cef
      Carl-Daniel Hailfinger authored
      
      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: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      Acked-by: default avatarPaul Fox <pgf@laptop.org>
      a2441cef
  32. 01 Oct, 2009 1 commit
  33. 16 Sep, 2009 1 commit