1. 13 2月, 2016 1 次提交
    • T
      spi: omap2-mcspi: Fix PM regression with deferred probe for pm_runtime_reinit · 0e6f357a
      Tony Lindgren 提交于
      Commit 5de85b9d ("PM / runtime: Re-init runtime PM states at probe
      error and driver unbind") introduced pm_runtime_reinit() that is used
      to reinitialize PM runtime after -EPROBE_DEFER. This allows shutting
      down the device after a failed probe.
      
      However, for drivers using pm_runtime_use_autosuspend() this can cause
      a state where suspend callback is never called after -EPROBE_DEFER.
      On the following device driver probe, hardware state is different from
      the PM runtime state causing omap_device to produce the following
      error:
      
      omap_device_enable() called from invalid state 1
      
      And with omap_device and omap hardware being picky for PM, this will
      block any deeper idle states in hardware.
      
      The solution is to fix the drivers to follow the PM runtime documentation:
      
      1. For sections of code that needs the device disabled, use
         pm_runtime_put_sync_suspend() if pm_runtime_set_autosuspend() has
         been set.
      
      2. For driver exit code, use pm_runtime_dont_use_autosuspend() before
         pm_runtime_put_sync() if pm_runtime_use_autosuspend() has been
         set.
      
      Fixes: 5de85b9d ("PM / runtime: Re-init runtime PM states at probe
      error and driver unbind")
      Cc: linux-spi@vger.kernel.org
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: Kevin Hilman <khilman@baylibre.com>
      Cc: Mark Brown <broonie@kernel.org>
      Cc: Nishanth Menon <nm@ti.com>
      Cc: Rafael J. Wysocki <rafael@kernel.org>
      Cc: Ulf Hansson <ulf.hansson@linaro.org>
      Cc: Tero Kristo <t-kristo@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      0e6f357a
  2. 10 2月, 2016 1 次提交
  3. 29 1月, 2016 1 次提交
  4. 23 1月, 2016 2 次提交
  5. 16 1月, 2016 1 次提交
    • A
      spi: fix counting in spi-loopback-test code · ebea7c05
      Arnd Bergmann 提交于
      These variables are always used uninitialized:
      
      drivers/spi/spi-loopback-test.c: In function 'spi_test_run_iter':
      drivers/spi/spi-loopback-test.c:768:17: warning: 'rx_count' may be used uninitialized in this function [-Wmaybe-uninitialized]
      drivers/spi/spi-loopback-test.c:762:17: warning: 'tx_count' may be used uninitialized in this function [-Wmaybe-uninitialized]
      
      Adding an explicit initialization seems to be the only
      workable solution here, to make the code behave correctly
      and build without warning.
      
      Fixes: 84e0c4e5 ("spi: add loopback test driver to allow for spi_master regression tests")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      ebea7c05
  6. 08 1月, 2016 1 次提交
  7. 07 1月, 2016 1 次提交
  8. 06 1月, 2016 4 次提交
  9. 05 1月, 2016 2 次提交
  10. 01 1月, 2016 3 次提交
  11. 31 12月, 2015 2 次提交
  12. 23 12月, 2015 3 次提交
  13. 16 12月, 2015 6 次提交
  14. 14 12月, 2015 3 次提交
  15. 13 12月, 2015 5 次提交
  16. 08 12月, 2015 4 次提交