1. 24 11月, 2013 1 次提交
  2. 15 11月, 2013 1 次提交
  3. 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
  4. 17 9月, 2013 2 次提交
  5. 29 8月, 2013 1 次提交
  6. 30 7月, 2013 1 次提交
  7. 30 5月, 2013 1 次提交
  8. 23 5月, 2013 1 次提交
  9. 18 4月, 2013 1 次提交
  10. 07 4月, 2013 1 次提交
  11. 06 2月, 2013 1 次提交
    • M
      spi/davinci: use request_threaded_irq() to fix deadlock · 32310aaf
      Murali Karicheri 提交于
      With RT pre-empt patch applied to Linux kernel, the irq handler will be
      force converted to an irq thread. spi driver can get back to back messages
      from the slave device. In such cases, IRQ thread doesn't get a chance to
      run to read the slave data. Hence the irq handler must be run in hard irq
      context to read/write data from slave device. Otherwise, the kernel goes
      into a deadlock. This patch fixes this issue when PREEMPT_RT_FULL is
      enabled in the kernel. A dummy thread function is provided to satisfy the
      request_threaded_irq() API. Passing a NULL for function also causes the
      irq handler to be executed in the thread context.
      Signed-off-by: NMurali Karicheri <m-karicheri2@ti.com>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      32310aaf
  12. 05 2月, 2013 1 次提交
  13. 08 12月, 2012 1 次提交
  14. 14 9月, 2012 1 次提交
  15. 01 9月, 2012 1 次提交
  16. 31 3月, 2012 1 次提交
  17. 25 10月, 2011 1 次提交
  18. 06 6月, 2011 1 次提交
  19. 15 3月, 2011 2 次提交
  20. 01 3月, 2011 1 次提交
  21. 18 11月, 2010 18 次提交