1. 28 1月, 2015 1 次提交
  2. 27 1月, 2015 2 次提交
  3. 17 8月, 2014 1 次提交
  4. 10 7月, 2014 1 次提交
  5. 27 2月, 2014 1 次提交
  6. 23 2月, 2014 1 次提交
  7. 03 2月, 2014 1 次提交
  8. 15 11月, 2013 1 次提交
  9. 07 10月, 2013 1 次提交
    • A
      spi: bitbang: Let spi_bitbang_start() take a reference to master · 702a4879
      Axel Lin 提交于
      Many drivers that use bitbang library have a leak on probe error paths.
      This is because once a spi_master_get() call succeeds, we need an additional
      spi_master_put() call to free the memory.
      
      Fix this issue by moving the code taking a reference to master to
      spi_bitbang_start(), so spi_bitbang_start() will take a reference to master on
      success. With this change, the caller is responsible for calling
      spi_bitbang_stop() to decrement the reference and spi_master_put() as
      counterpart of spi_alloc_master() to prevent a memory leak.
      
      So now we have below patten for drivers using bitbang library:
      
      probe:
      spi_alloc_master        -> Init reference count to 1
      spi_bitbang_start       -> Increment reference count
      remove:
      spi_bitbang_stop        -> Decrement reference count
      spi_master_put          -> Decrement reference count (reference count reaches 0)
      
      Fixup all users accordingly.
      Signed-off-by: NAxel Lin <axel.lin@ingics.com>
      Suggested-by: NUwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>
      Acked-by: NUwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      702a4879
  10. 17 9月, 2013 1 次提交
    • A
      spi: bitbang: Let spi_bitbang_start() take a reference to master · 94c69f76
      Axel Lin 提交于
      Many drivers that use bitbang library have a leak on probe error paths.
      This is because once a spi_master_get() call succeeds, we need an additional
      spi_master_put() call to free the memory.
      
      Fix this issue by moving the code taking a reference to master to
      spi_bitbang_start(), so spi_bitbang_start() will take a reference to master on
      success. With this change, the caller is responsible for calling
      spi_bitbang_stop() to decrement the reference and spi_master_put() as
      counterpart of spi_alloc_master() to prevent a memory leak.
      
      So now we have below patten for drivers using bitbang library:
      
      probe:
      spi_alloc_master        -> Init reference count to 1
      spi_bitbang_start       -> Increment reference count
      remove:
      spi_bitbang_stop        -> Decrement reference count
      spi_master_put          -> Decrement reference count (reference count reaches 0)
      
      Fixup all users accordingly.
      Signed-off-by: NAxel Lin <axel.lin@ingics.com>
      Suggested-by: NUwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>
      Acked-by: NUwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      94c69f76
  11. 29 8月, 2013 1 次提交
  12. 10 8月, 2013 1 次提交
  13. 18 7月, 2013 1 次提交
  14. 15 7月, 2013 7 次提交
  15. 10 7月, 2013 1 次提交
  16. 10 6月, 2013 1 次提交
  17. 05 6月, 2013 3 次提交
  18. 30 5月, 2013 1 次提交
  19. 08 12月, 2012 1 次提交
  20. 25 10月, 2011 1 次提交
  21. 06 6月, 2011 1 次提交
  22. 27 5月, 2011 1 次提交
  23. 23 3月, 2011 1 次提交
  24. 22 1月, 2011 1 次提交
  25. 10 11月, 2010 3 次提交
  26. 30 7月, 2010 1 次提交
  27. 21 1月, 2010 1 次提交
    • P
      spi: xilinx_spi: Fix up I/O routine wrapping bogosity. · 97782149
      Paul Mundt 提交于
      xilinx_spi presently makes some fairly questionable assumptions about I/O
      routines, and attempts to assign ioread32/iowrite32 and friends directly
      to its own internal function pointers. On many platforms these I/O
      routines are macros or wrappers and not actual functions on their own,
      resulting in things like:
      
      ERROR: "ioread32be" [drivers/spi/xilinx_spi.ko] undefined!
      ERROR: "iowrite32be" [drivers/spi/xilinx_spi.ko] undefined!
      ERROR: "iowrite32" [drivers/spi/xilinx_spi.ko] undefined!
      ERROR: "ioread32" [drivers/spi/xilinx_spi.ko] undefined!
      
      If xilinx_spi wants to do this sort of casting, it needs to provide its
      own wrappers for these, or change how it does accesses completely.
      
      I've opted for the first approach, and the attached silly patch does
      that. If someone with the hardware available wants to give the second
      option a try that's ok too. In any event, the current code is broken for
      at least: arm, avr32, blackfin, microblaze, mn10300, and sh.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      Acked-by: NRichard Röjfors <richard.rojfors@pelagicore.com>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      97782149
  28. 09 12月, 2009 2 次提交