1. 06 12月, 2012 1 次提交
  2. 02 12月, 2012 2 次提交
  3. 23 11月, 2012 1 次提交
  4. 22 11月, 2012 1 次提交
  5. 14 11月, 2012 5 次提交
  6. 10 11月, 2012 3 次提交
  7. 07 11月, 2012 1 次提交
  8. 06 11月, 2012 1 次提交
  9. 01 11月, 2012 2 次提交
  10. 31 10月, 2012 1 次提交
  11. 23 10月, 2012 1 次提交
    • U
      spi/pl022: Revert recent runtime PM changes · 213d27a4
      Ulf Hansson 提交于
      [Originally sent by Ulf as two changes, squashed down into one with a
      redone changelog, thanks to Russell King for analysis. -- broonie]
      
      This reverts commit 688723 (spi/pl022: enable runtime PM) and commit
      2fb30d (spi/pl022: fix spi-pl022 pm enable at probe).
      
      Commit "spi/pl022: enable runtime PM" introduced runtime PM issues as it
      interacted badly with the work Russell King had done to move core
      runtime PM handling into the bus.  Due to that commit, "spi/pl022: fix
      spi-pl022 pm enable at probe" was merged to fix part of those issues.
      
      Instead of adding another fix, let's clean up and revert everything
      back to when it was already fine.
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      Reviewed-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      
      Revert "spi/pl022: enable runtime PM"
      
      Conflicts:
      	drivers/spi/spi-pl022.c
      213d27a4
  12. 17 10月, 2012 13 次提交
  13. 01 10月, 2012 2 次提交
    • S
      dt/s3c64xx/spi: Use of_get_child_by_name to get a named child · 06455bbc
      Srinivas Kandagatla 提交于
      As follow-up to "dt: introduce of_get_child_by_name to get child node by
      name." patch, This patch removes some of the code duplication in the
      driver by replacing it with of_get_child_by_name instead.
      Signed-off-by: NSrinivas Kandagatla <srinivas.kandagatla@st.com>
      Signed-off-by: NRob Herring <rob.herring@calxeda.com>
      06455bbc
    • S
      spi: remove completely broken Tegra driver · 536a53a3
      Stephen Warren 提交于
      The current SPI driver has many issues. Examples are:
      
      * Segfaulting on most transfers due to expecting all transfers to have
        both RX and TX buffers.
      * Hanging on TX transfers since the whole driver flow is driven by RX
        DMA completion, but the HW is only told to enable RX for RX transfers.
      * Use of clk_disable_unprepare() from atomic context.
      * Once those and other minor issues are fixed, the driver still doesn't
        actually work.
      * The driver also implements a deprecated API to the SPI core.
      
      For this reason, simply remove the driver completely. This has two
      advantages:
      
      1) This will remove the last use of Tegra's <mach/dma.h>, which will
         allow that file to be removed, which is required for single zImage
         work.
      
      2) The downstream driver is significaly different from the current
         code. I believe a patch to re-add the downstream driver (with
         appropriate cleanup) will be much simpler to review if it's a new
         file rather than randomly interspered with essentially unrelated
         existing code.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      536a53a3
  14. 28 9月, 2012 3 次提交
  15. 25 9月, 2012 2 次提交
    • R
      spi/pl022: Devicetree support w/o platform data · 39a6ac11
      Roland Stigge 提交于
      Even with devicetree support, we needed platform data to provide some data,
      leading to mixed device tree and platform data. This patch makes it possible to
      provide all that information via device tree. Now, the data must be provided
      via platform data _or_ device tree completely.
      
      Only in case of DMA where a callback specification is necessary (dma_filter()),
      platform data is the only option.
      Signed-off-by: NRoland Stigge <stigge@antcom.de>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      39a6ac11
    • S
      spi/s3c64xx: Don't free controller_data on non-dt platforms · 5bee3b94
      Sylwester Nawrocki 提交于
      When s3c64xx-spi is instantiated from device tree an instance of
      struct s3c64xx_spi_csinfo is dynamically allocated in the driver.
      For non-dt platform it is passed from board code through
      spi_register_board_info(). On error path in s3c64xx_spi_setup()
      function there is an attempt to free this data struct
      s3c64xx_spi_csinfo object as it would have been allocated in the
      driver for both, dt and non-dt based platforms. This leads to
      following bug when gpio request fails:
      
      spi spi1.0: Failed to get /CS gpio [21]: -16
      kernel BUG at mm/slub.c:3478!
      Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM
      Modules linked in:
      CPU: 0    Not tainted  (3.6.0-rc5-00092-g9b0b493-dirty #6111)
      PC is at kfree+0x148/0x158
      LR is at s3c64xx_spi_setup+0xac/0x290
      pc : [<c00a513c>]    lr : [<c0227014>]    psr: 40000013
      sp : ee043e10  ip : c032883c  fp : c0481f7c
      r10: ee0abd80  r9 : 00000063  r8 : 00000000
      r7 : ee129e78  r6 : ee104a00  r5 : fffffff0  r4 : c047bc64
      r3 : 40000400  r2 : c047bc64  r1 : c04def60  r0 : 0004047b
      Flags: nZcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
      Control: 10c5387d  Table: 4000404a  DAC: 00000015
      Process swapper/0 (pid: 1, stack limit = 0xee0422f0)
      Stack: (0xee043e10 to 0xee044000)
      ...
      [<c00a513c>] (kfree+0x148/0x158) from [<c0227014>] (s3c64xx_spi_setup+0xac/0x290)
      [<c0227014>] (s3c64xx_spi_setup+0xac/0x290) from [<c02251a4>] (spi_setup+0x34/0x4c)
      [<c02251a4>] (spi_setup+0x34/0x4c) from [<c02258d0>] (spi_add_device+0x98/0x128)
      [<c02258d0>] (spi_add_device+0x98/0x128) from [<c02259d4>] (spi_new_device+0x74/0xa8)
      [<c02259d4>] (spi_new_device+0x74/0xa8) from [<c0225a2c>] (spi_match_master_to_boardinfo+0x24/0x44)
      [<c0225a2c>] (spi_match_master_to_boardinfo+0x24/0x44) from [<c0225b40>] (spi_register_master+0xf4/0x2a8)
      [<c0225b40>] (spi_register_master+0xf4/0x2a8) from [<c043fe0c>] (s3c64xx_spi_probe+0x34c/0x42c)
      [<c043fe0c>] (s3c64xx_spi_probe+0x34c/0x42c) from [<c01fc198>] (platform_drv_probe+0x18/0x1c)
      
      There should be no attempt to kfree controller_data when it was
      externally provided through the board code. Fix this by freeing
      controller_data only when dev->of_node is not null.
      Signed-off-by: NSylwester Nawrocki <s.nawrocki@samsung.com>
      Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
      Acked-by: NKukjin Kim <kgene.kim@samsung.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      5bee3b94
  16. 23 9月, 2012 1 次提交