1. 03 1月, 2018 1 次提交
  2. 29 6月, 2017 1 次提交
  3. 26 5月, 2015 2 次提交
  4. 21 5月, 2015 1 次提交
  5. 07 5月, 2015 2 次提交
  6. 28 4月, 2015 1 次提交
  7. 07 1月, 2015 1 次提交
  8. 22 11月, 2014 1 次提交
  9. 18 11月, 2014 2 次提交
  10. 20 10月, 2014 1 次提交
  11. 05 9月, 2014 5 次提交
  12. 21 5月, 2014 1 次提交
  13. 15 4月, 2014 6 次提交
  14. 13 3月, 2014 1 次提交
  15. 03 3月, 2014 1 次提交
    • Q
      spi: sirf: provide a shortcut for spi command-data mode · eeb71395
      Qipan Li 提交于
      there are many SPI clients which use the following protocal:
      step 1: send command bytes to clients(rx buffer is empty)
      step 2: send data bytes to clients or receive data bytes from
      clients.
      SiRFprimaII provides a shortcut for this kind of SPI transfer.
      when tx buf is less or equal than 4 bytes and rx buf is null
      in a transfer, we think it as 'command' data and use hardware
      command register for the transfer.
      here we can save some CPU loading than doing both tx and rx
      for a normal transfer.
      Signed-off-by: NQipan Li <Qipan.Li@csr.com>
      Signed-off-by: NBarry Song <Baohua.Song@csr.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      eeb71395
  16. 27 2月, 2014 1 次提交
  17. 24 2月, 2014 2 次提交
  18. 03 2月, 2014 1 次提交
  19. 17 1月, 2014 1 次提交
  20. 15 11月, 2013 1 次提交
  21. 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
  22. 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
  23. 29 8月, 2013 1 次提交
  24. 26 8月, 2013 1 次提交
  25. 23 8月, 2013 1 次提交
  26. 15 8月, 2013 1 次提交
    • J
      spi/sirf: simplify use of devm_ioremap_resource · 2479790b
      Julia Lawall 提交于
      Remove unneeded error handling on the result of a call to
      platform_get_resource when the value is passed to devm_ioremap_resource.
      
      Move the call to platform_get_resource adjacent to the call to
      devm_ioremap_resource to make the connection between them more clear.
      
      A simplified version of the semantic patch that makes this change is as
      follows: (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @@
      expression pdev,res,n,e,e1;
      expression ret != 0;
      identifier l;
      @@
      
      - res = platform_get_resource(pdev, IORESOURCE_MEM, n);
        ... when != res
      - if (res == NULL) { ... \(goto l;\|return ret;\) }
        ... when != res
      + res = platform_get_resource(pdev, IORESOURCE_MEM, n);
        e = devm_ioremap_resource(e1, res);
      // </smpl>
      Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
      Acked-by: NBarry Song <Baohua.Song@csr.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      2479790b
  27. 06 8月, 2013 1 次提交