1. 19 Jul, 2014 1 commit
  2. 12 Jun, 2014 1 commit
  3. 16 May, 2014 1 commit
    • Stefan Tauner's avatar
      AT45DB: fix read functions · 7141b986
      Stefan Tauner authored
      
      This fixes segfaults on reads (implicit reads on writes too), ouch.
      Thanks to The Raven for reporting the problem and testing my patch, and
      to Alexander Irenkov for providing a workable fix for it additionally.
      
      There were actually two problems:
      1) The loop conditions were bogus which could lead to read errors
         (e.g. on implicit erase verifications).
      2) The offset used within the read buffers provided to spi_nbyte_read()
         and memcpy() were not starting at 0 but the offset of the block
         within the flash chip (which has nothing to do with read buffer in
         most cases).
      
      This patch works similarly to Alexander's but is intended to be
      more readable.
      
      Corresponding to flashrom svn r1792.
      Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      Acked-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      7141b986
  4. 09 May, 2014 1 commit
  5. 27 Aug, 2013 3 commits