1. 09 12月, 2016 1 次提交
  2. 08 12月, 2016 2 次提交
  3. 07 12月, 2016 2 次提交
    • T
      PM / wakeirq: Fix dedicated wakeirq for drivers not using autosuspend · bed57030
      Tony Lindgren 提交于
      I noticed some wakeirq flakeyness with consumer drivers not using
      autosuspend. For drivers not using autosuspend, the wakeirq may never
      get unmasked in rpm_suspend() because of irq desc->depth.
      
      We are configuring dedicated wakeirqs to start with IRQ_NOAUTOEN as we
      naturally don't want them running until rpm_suspend() is called.
      
      However, when a consumer driver initially calls pm_runtime_get(), we
      now wrongly start with disable_irq_nosync() call on the dedicated
      wakeirq that is disabled to start with.
      
      This causes desc->depth to toggle between 1 and 2 instead of the usual
      0 and 1. This can prevent enable_irq() from unmasking the wakeirq as
      that only happens at desc->depth 1.
      
      This does not necessarily show up with drivers using autosuspend as
      there is time for disable_irq_nosync() before rpm_suspend() gets called
      after the autosuspend timeout.
      
      Let's fix the issue by adding wirq->status that lazily gets set on
      the first rpm_suspend(). We also need PM runtime core private functions
      for dev_pm_enable_wake_irq_check() and dev_pm_disable_wake_irq_check()
      so we can enable the dedicated wakeirq on the first rpm_suspend().
      
      While at it, let's also fix the comments for dev_pm_enable_wake_irq()
      and dev_pm_disable_wake_irq(). Those can still be used by the consumer
      drivers as needed because the IRQ core manages the interrupt usecount
      for us.
      
      Fixes: 4990d4fe (PM / Wakeirq: Add automated device wake IRQ handling)
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      bed57030
    • L
      PM / Domains: Fix compatible for domain idle state · 598da548
      Lina Iyer 提交于
      Re-using idle state definition provided by arm,idle-state for domain
      idle states creates a lot of confusion and limits further evolution of
      the domain idle definition. To keep things clear and simple, define a
      idle states for domain using a new compatible "domain-idle-state".
      
      Fix existing PM domains code to look for the newly defined compatible.
      Signed-off-by: NLina Iyer <lina.iyer@linaro.org>
      Reviewed-by: NUlf Hansson <ulf.hansson@linaro.org>
      Reviewed-by: NSudeep Holla <sudeep.holla@arm.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      598da548
  4. 06 12月, 2016 7 次提交
  5. 05 12月, 2016 1 次提交
  6. 02 12月, 2016 1 次提交
  7. 01 12月, 2016 5 次提交
  8. 30 11月, 2016 13 次提交
  9. 25 11月, 2016 1 次提交
    • K
      regmap: cache: Remove unused 'blksize' variable · daaadbf0
      Kirtika Ruchandani 提交于
      Commit 2cbbb579 ("regmap: Add the LZO cache support") introduced
      'blksize' in  regcache_lzo_read() and regcache_lzo_write(), that is
      set but not used. Compiling with W=1 gives the following warnings,
      fix them.
      
      drivers/base/regmap/regcache-lzo.c: In function ‘regcache_lzo_read’:
      drivers/base/regmap/regcache-lzo.c:239:9: warning: variable ‘blksize’ set but not used [-Wunused-but-set-variable]
        size_t blksize, tmp_dst_len;
               ^
      drivers/base/regmap/regcache-lzo.c: In function ‘regcache_lzo_write’:
      drivers/base/regmap/regcache-lzo.c:278:9: warning: variable ‘blksize’ set but not used [-Wunused-but-set-variable]
        size_t blksize, tmp_dst_len;
               ^
      
      These are harmless warnings and are only being fixed to reduce the
      noise with W=1 in the kernel.
      
      Fixes: 2cbbb579 ("regmap: Add the LZO cache support")
      Cc: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
      Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
      Signed-off-by: NKirtika Ruchandani <kirtika@chromium.org>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      daaadbf0
  10. 19 11月, 2016 1 次提交
  11. 16 11月, 2016 1 次提交
  12. 11 11月, 2016 5 次提交
新手
引导
客服 返回
顶部