1. 18 6月, 2013 1 次提交
    • I
      spi: omap2-mcspi: Add FIFO buffer support · d33f473d
      Illia Smyrnov 提交于
      The MCSPI controller has a built-in FIFO buffer to unload the DMA or interrupt
      handler and improve data throughput. This patch adds FIFO buffer support for SPI
      transfers in DMA mode.
      
      For SPI transfers in DMA mode, the largest possible FIFO buffer size will be
      calculated and set up. The FIFO won't be used for the SPI transfers in DMA mode
      if: calculated FIFO buffer size is less then 2 bytes or the FIFO buffer size
      isn't multiple of the SPI word length.
      Signed-off-by: NIllia Smyrnov <illia.smyrnov@ti.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      d33f473d
  2. 17 6月, 2013 1 次提交
  3. 13 5月, 2013 1 次提交
  4. 18 4月, 2013 1 次提交
  5. 16 4月, 2013 1 次提交
  6. 01 4月, 2013 1 次提交
  7. 05 2月, 2013 1 次提交
  8. 26 1月, 2013 3 次提交
  9. 08 12月, 2012 1 次提交
  10. 02 12月, 2012 2 次提交
  11. 14 11月, 2012 2 次提交
  12. 06 11月, 2012 1 次提交
  13. 17 10月, 2012 1 次提交
  14. 23 9月, 2012 2 次提交
  15. 19 9月, 2012 1 次提交
    • A
      ARM: omap: move platform_data definitions · 2203747c
      Arnd Bergmann 提交于
      Platform data for device drivers should be defined in
      include/linux/platform_data/*.h, not in the architecture
      and platform specific directories.
      
      This moves such data out of the omap include directories
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Acked-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Acked-by: NNicolas Pitre <nico@linaro.org>
      Acked-by: NTony Lindgren <tony@atomide.com>
      Cc: Kevin Hilman <khilman@ti.com>
      Cc: "Benoît Cousson" <b-cousson@ti.com>
      Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Kyungmin Park <kyungmin.park@samsung.com>
      Cc: Ohad Ben-Cohen <ohad@wizery.com>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Cc: Omar Ramirez Luna <omar.ramirez@ti.com>
      Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
      Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
      Cc: Peter Ujfalusi <peter.ujfalusi@ti.com>
      Cc: Jarkko Nikula <jarkko.nikula@bitmer.com>
      Cc: Liam Girdwood <lrg@ti.com>
      Cc: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
      Cc: Jean Pihet <j-pihet@ti.com>
      Cc: J Keerthy <j-keerthy@ti.com>
      Cc: linux-omap@vger.kernel.org
      2203747c
  16. 12 9月, 2012 1 次提交
  17. 23 8月, 2012 3 次提交
  18. 18 8月, 2012 1 次提交
  19. 04 8月, 2012 1 次提交
  20. 03 8月, 2012 1 次提交
  21. 31 7月, 2012 2 次提交
  22. 23 7月, 2012 1 次提交
  23. 20 7月, 2012 1 次提交
    • S
      spi: omap2-mcspi: Fix the below warning · a3ce9a80
      Shubhrajyoti D 提交于
      The dma_map and dma_unmap should have same parameter
      passed otherwise we get the below warn.
      
      ks8851 spi1.0: DMA-API: device driver tries to free DMA memory it has not allocated [device address=0x000000009f22]
      
      [    2.066925] Modules linked in:
      [    2.070312]
      [    2.071929] [<c001c250>] (unwind_backtrace+0x0/0x130) from [<c0043d84>] (warn_slowpath_common+0x4c/0x64)
      [    2.081909] [<c0043d84>] (warn_slowpath_common+0x4c/0x64) from [<c0043e30>] (warn_slowpath_fmt+0x30/0x40)
      [    2.091949] [<c0043e30>] (warn_slowpath_fmt+0x30/0x40) from [<c0293824>] (check_unmap+0x6d0/0x7b0)
      [    2.101348] [<c0293824>] (check_unmap+0x6d0/0x7b0) from [<c02939cc>] (debug_dma_unmap_page+0x64/0x70)
      [    2.111053] [<c02939cc>] (debug_dma_unmap_page+0x64/0x70) from [<c03519a4>] (omap2_mcspi_txrx_dma+0x2d8/0x4fc)
      [    2.121582] [<c03519a4>] (omap2_mcspi_txrx_dma+0x2d8/0x4fc) from [<c03524d8>] (omap2_mcspi_work.clone.4+0xf0/0x290)
      [    2.132537] [<c03524d8>] (omap2_mcspi_work.clone.4+0xf0/0x290) from [<c0352900>] (omap2_mcspi_transfer_one_message+0x288/0x438)
      [    2.144592] [<c0352900>] (omap2_mcspi_transfer_one_message+0x288/0x438) from [<c03503bc>] (spi_pump_messages+0x100/0x160)
      [    2.156127] [<c03503bc>] (spi_pump_messages+0x100/0x160) from [<c006635c>] (kthread_worker_fn+0xac/0x180)
      [    2.166168] [<c006635c>] (kthread_worker_fn+0xac/0x180) from [<c0066578>] (kthread+0x90/0x9c)
      [    2.175140] [<c0066578>] (kthread+0x90/0x9c) from [<c00157fc>] (kernel_thread_exit+0x0/0x8)
      [    2.183898] ---[ end trace d1830ce6e44292f2 ]---
      
      Fix the warn by changing the unmap parameter.
      Reported-by: NRussell King - ARM Linux <linux@arm.linux.org.uk>
      Signed-off-by: NShubhrajyoti D <shubhrajyoti@ti.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      a3ce9a80
  24. 18 6月, 2012 1 次提交
    • R
      SPI: fix over-eager devm_xxx() conversion · 10aa5a35
      Russell King 提交于
      1a77b127 (OMAP : SPI : use devm_* functions) converted the SPI
      device controller state to use devm_kzalloc().  Unfortunately, this
      is used against an unbound struct device, which results in the
      following when the device is bound to its driver:
      
      ------------[ cut here ]------------
      WARNING: at /home/rmk/git/linux-rmk/drivers/base/dd.c:257 driver_probe_device+0x78/0x21c()
      Modules linked in:
      Backtrace:
      [<c0017d0c>] (dump_backtrace+0x0/0x10c) from [<c033e208>] (dump_stack+0x18/0x1c) r7:00000000 r6:c01ff28c r5:c040050c r4:00000101
      [<c033e1f0>] (dump_stack+0x0/0x1c) from [<c00337ec>] (warn_slowpath_common+0x58/0x70)
      [<c0033794>] (warn_slowpath_common+0x0/0x70) from [<c0033828>] (warn_slowpath_null+0x24/0x2c)
      [<c0033804>] (warn_slowpath_null+0x0/0x2c) from [<c01ff28c>] (driver_probe_device+0x78/0x21c)
      [<c01ff214>] (driver_probe_device+0x0/0x21c) from [<c01ff49c>] (__driver_attach+0x6c/0x90)
      [<c01ff430>] (__driver_attach+0x0/0x90) from [<c01fda70>] (bus_for_each_dev+0x58/0x98)
      [<c01fda18>] (bus_for_each_dev+0x0/0x98) from [<c01ff0f4>] (driver_attach+0x20/0x28)
      [<c01ff0d4>] (driver_attach+0x0/0x28) from [<c01fe2f4>] (bus_add_driver+0xb4/0x230)
      [<c01fe240>] (bus_add_driver+0x0/0x230) from [<c01ffb24>] (driver_register+0xac/0x138)
      [<c01ffa78>] (driver_register+0x0/0x138) from [<c0215d4c>] (spi_register_driver+0x4c/0x60)
      [<c0215d00>] (spi_register_driver+0x0/0x60) from [<c045414c>] (ks8851_init+0x14/0x1c)
      [<c0454138>] (ks8851_init+0x0/0x1c) from [<c0008770>] (do_one_initcall+0x9c/0x164)
      [<c00086d4>] (do_one_initcall+0x0/0x164) from [<c0436410>] (kernel_init+0x128/0x210)
      [<c04362e8>] (kernel_init+0x0/0x210) from [<c0038754>] (do_exit+0x0/0x72c)
      ---[ end trace 4dcda79f5e89dd84 ]---
      ks8851 spi1.0: message enable is 0
      ks8851 spi1.0: eth0: revision 0, MAC 08:00:28:01:4d:c6, IRQ 194, has EEPROM
      
      Fix this by partially reverting the original commit.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      10aa5a35
  25. 20 5月, 2012 1 次提交
  26. 11 4月, 2012 3 次提交
  27. 19 3月, 2012 3 次提交
  28. 16 2月, 2012 1 次提交