1. 17 1月, 2015 1 次提交
  2. 19 12月, 2014 1 次提交
  3. 13 12月, 2014 1 次提交
  4. 07 12月, 2014 1 次提交
  5. 05 12月, 2014 3 次提交
  6. 04 12月, 2014 2 次提交
    • R
      PM: Merge the SET*_RUNTIME_PM_OPS() macros · 6ed23b80
      Rafael J. Wysocki 提交于
      The SET_PM_RUNTIME_PM_OPS() and SET_RUNTIME_PM_OPS() macros are
      identical except that one of them is not empty for CONFIG_PM set,
      while the other one is not empty for CONFIG_PM_RUNTIME set,
      respectively.
      
      However, after commit b2b49ccb (PM: Kconfig: Set PM_RUNTIME if
      PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so one
      of these macros is now redundant.
      
      For this reason, replace SET_PM_RUNTIME_PM_OPS() with
      SET_RUNTIME_PM_OPS() everywhere and redefine the SET_PM_RUNTIME_PM_OPS
      symbol as SET_RUNTIME_PM_OPS in case new code is starting to use the
      macro being removed here.
      Reviewed-by: NUlf Hansson <ulf.hansson@linaro.org>
      Acked-by: NKevin Hilman <khilman@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      6ed23b80
    • F
      spi: Check for spi_of_notifier when CONFIG_OF_DYNAMIC=y · 5267720e
      Fabio Estevam 提交于
      Since commit ce79d54a ("spi/of: Add OF notifier handler") the
      following warning is seen on a imx53 system that has CONFIG_OF_DYNAMIC=n:
      
      [    0.048119] ------------[ cut here ]------------
      [    0.048146] WARNING: CPU: 0 PID: 1 at drivers/spi/spi.c:2419 spi_init+0x60/0xa8()
      [    0.048158] Modules linked in:
      [    0.048183] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.18.0-rc6-next-20141126-00003-g9388e85 #2080
      [    0.048193] Hardware name: Freescale i.MX53 (Device Tree Support)
      [    0.048203] Backtrace:
      [    0.048235] [<80011f74>] (dump_backtrace) from [<80012110>] (show_stack+0x18/0x1c)
      [    0.048246]  r6:00000973 r5:00000000 r4:00000000 r3:00000000
      [    0.048284] [<800120f8>] (show_stack) from [<806b3ad8>] (dump_stack+0x88/0xa4)
      [    0.048312] [<806b3a50>] (dump_stack) from [<8002a55c>] (warn_slowpath_common+0x80/0xbc)
      [    0.048320]  r5:8096cfcc r4:00000000
      [    0.048343] [<8002a4dc>] (warn_slowpath_common) from [<8002a5bc>] (warn_slowpath_null+0x24/0x2c)
      [    0.048354]  r8:8096cf6c r7:809355ec r6:ddcd7c00 r5:812029e4 r4:00000000
      [    0.048389] [<8002a598>] (warn_slowpath_null) from [<8096cfcc>] (spi_init+0x60/0xa8)
      [    0.048405] [<8096cf6c>] (spi_init) from [<80008a7c>] (do_one_initcall+0x88/0x1e0)
      [    0.048415]  r5:8099e018 r4:8099e018
      [    0.048438] [<800089f4>] (do_one_initcall) from [<80935e38>] (kernel_init_freeable+0x110/0x1e0)
      [    0.048448]  r10:80980700 r9:809806e4 r8:000000cc r7:809355ec r6:809f8940 r5:00000002
      [    0.048478]  r4:8098d744
      [    0.048508] [<80935d28>] (kernel_init_freeable) from [<806ae574>] (kernel_init+0x10/0xf4)
      [    0.048517]  r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:806ae564
      [    0.048547]  r4:00000000
      [    0.048565] [<806ae564>] (kernel_init) from [<8000ed68>] (ret_from_fork+0x14/0x2c)
      [    0.048574]  r4:00000000 r3:00000000
      [    0.048616] ---[ end trace 405a65d177dae4fd ]---
      
      Only check of_reconfig_notifier_register() in the CONFIG_OF_DYNAMIC=y case,
      as intended by commit ce79d54a.
      Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
      Signed-off-by: NGrant Likely <grant.likely@linaro.org>
      5267720e
  7. 03 12月, 2014 2 次提交
  8. 02 12月, 2014 1 次提交
  9. 28 11月, 2014 2 次提交
  10. 27 11月, 2014 3 次提交
  11. 25 11月, 2014 8 次提交
  12. 22 11月, 2014 2 次提交
  13. 18 11月, 2014 2 次提交
  14. 17 11月, 2014 2 次提交
  15. 12 11月, 2014 2 次提交
  16. 11 11月, 2014 1 次提交
  17. 08 11月, 2014 1 次提交
  18. 07 11月, 2014 1 次提交
    • T
      spi: dw: Fix dynamic speed change. · 0a8727e6
      Thor Thayer 提交于
      An IOCTL call that calls spi_setup() and then dw_spi_setup() will
      overwrite the persisted last transfer speed. On each transfer, the
      SPI speed is compared to the last transfer speed to determine if the
      clock divider registers need to be updated (did the speed change?).
      This bug was observed with the spidev driver using spi-config to
      update the max transfer speed.
      
      This fix: Don't overwrite the persisted last transaction clock speed
      when updating the SPI parameters in dw_spi_setup(). On the next
      transaction, the new speed won't match the persisted last speed
      and the hardware registers will be updated.
      On initialization, the persisted last transaction clock
      speed will be 0 but will be updated after the first SPI
      transaction.
      
      Move zeroed clock divider check into clock change test because
      chip->clk_div is zero on startup and would cause a divide-by-zero
      error. The calculation was wrong as well (can't support odd #).
      Reported-by: NVlastimil Setka <setka@vsis.cz>
      Signed-off-by: NVlastimil Setka <setka@vsis.cz>
      Signed-off-by: NThor Thayer <tthayer@opensource.altera.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      Cc: stable@vger.kernel.org
      0a8727e6
  19. 06 11月, 2014 1 次提交
    • D
      spi: pxa2xx: toggle clocks on suspend if not disabled by runtime PM · 2b9375b9
      Dmitry Eremin-Solenikov 提交于
      If PM_RUNTIME is enabled, it is easy to trigger the following backtrace
      on pxa2xx hosts:
      
      ------------[ cut here ]------------
      WARNING: CPU: 0 PID: 1 at /home/lumag/linux/arch/arm/mach-pxa/clock.c:35 clk_disable+0xa0/0xa8()
      Modules linked in:
      CPU: 0 PID: 1 Comm: swapper Not tainted 3.17.0-00007-g1b3d2ee-dirty #104
      [<c000de68>] (unwind_backtrace) from [<c000c078>] (show_stack+0x10/0x14)
      [<c000c078>] (show_stack) from [<c001d75c>] (warn_slowpath_common+0x6c/0x8c)
      [<c001d75c>] (warn_slowpath_common) from [<c001d818>] (warn_slowpath_null+0x1c/0x24)
      [<c001d818>] (warn_slowpath_null) from [<c0015e80>] (clk_disable+0xa0/0xa8)
      [<c0015e80>] (clk_disable) from [<c02507f8>] (pxa2xx_spi_suspend+0x2c/0x34)
      [<c02507f8>] (pxa2xx_spi_suspend) from [<c0200360>] (platform_pm_suspend+0x2c/0x54)
      [<c0200360>] (platform_pm_suspend) from [<c0207fec>] (dpm_run_callback.isra.14+0x2c/0x74)
      [<c0207fec>] (dpm_run_callback.isra.14) from [<c0209254>] (__device_suspend+0x120/0x2f8)
      [<c0209254>] (__device_suspend) from [<c0209a94>] (dpm_suspend+0x50/0x208)
      [<c0209a94>] (dpm_suspend) from [<c00455ac>] (suspend_devices_and_enter+0x8c/0x3a0)
      [<c00455ac>] (suspend_devices_and_enter) from [<c0045ad4>] (pm_suspend+0x214/0x2a8)
      [<c0045ad4>] (pm_suspend) from [<c04b5c34>] (test_suspend+0x14c/0x1dc)
      [<c04b5c34>] (test_suspend) from [<c000880c>] (do_one_initcall+0x8c/0x1fc)
      [<c000880c>] (do_one_initcall) from [<c04aecfc>] (kernel_init_freeable+0xf4/0x1b4)
      [<c04aecfc>] (kernel_init_freeable) from [<c0378078>] (kernel_init+0x8/0xec)
      [<c0378078>] (kernel_init) from [<c0009590>] (ret_from_fork+0x14/0x24)
      ---[ end trace 46524156d8faa4f6 ]---
      
      This happens because suspend function tries to disable a clock that is
      already disabled by runtime_suspend callback. Add if
      (!pm_runtime_suspended()) checks to suspend/resume path.
      
      Fixes: 7d94a505 (spi/pxa2xx: add support for runtime PM)
      Signed-off-by: NDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
      Reported-by: NAndrea Adami <andrea.adami@gmail.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      Cc: stable@vger.kernel.org
      2b9375b9
  20. 05 11月, 2014 1 次提交
  21. 04 11月, 2014 1 次提交
  22. 29 10月, 2014 1 次提交