1. 28 Jun, 2016 1 commit
  2. 15 Jan, 2016 1 commit
    • Arnd Bergmann's avatar
      spi: fix counting in spi-loopback-test code · ebea7c05
      Arnd Bergmann authored
      These variables are always used uninitialized:
      
      drivers/spi/spi-loopback-test.c: In function 'spi_test_run_iter':
      drivers/spi/spi-loopback-test.c:768:17: warning: 'rx_count' may be used uninitialized in this function [-Wmaybe-uninitialized]
      drivers/spi/spi-loopback-test.c:762:17: warning: 'tx_count' may be used uninitialized in this function [-Wmaybe-uninitialized]
      
      Adding an explicit initialization seems to be the only
      workable solution here, to make the code behave correctly
      and build without warning.
      
      Fixes: 84e0c4e5 ("spi: add loopback test driver to allow for spi_master regression tests")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      ebea7c05
  3. 08 Jan, 2016 1 commit
  4. 05 Jan, 2016 3 commits
  5. 13 Dec, 2015 2 commits
  6. 12 Dec, 2015 1 commit
    • Martin Sperl's avatar
      spi: add loopback test driver to allow for spi_master regression tests · 84e0c4e5
      Martin Sperl authored
      This driver is submitting lots of distinct spi-messages messages
      with all kinds of alignments and length pattern.
      Also distinct kinds of transfer pattern tests are implemented
      (rx, tx, rx/tx, tx+tx, tx+rx,...)
      
      Right now on a raspberry pi 752 distinct spi_messages are executed
      in 13 different scenarios.
      
      Configuration of additional test-pattern is easy, so that when
      new bugs in drivers get detected the relevant transfer pattern can
      also get added to the test framework, so that such situations are
      detected in other drivers as well.
      
      The idea behind this driver is to make it possible to also detect
      regressions in spi_master implementations when changes occur.
      Potentially these tests could get executed automatically in a
      test-server-farm.
      Signed-off-by: default avatarMartin Sperl <kernel@martin.sperl.org>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      84e0c4e5