1. 20 2月, 2016 8 次提交
  2. 16 12月, 2015 1 次提交
  3. 13 12月, 2015 2 次提交
  4. 09 12月, 2015 2 次提交
  5. 06 10月, 2015 2 次提交
  6. 05 10月, 2015 1 次提交
  7. 15 9月, 2015 1 次提交
  8. 31 8月, 2015 2 次提交
  9. 30 8月, 2015 3 次提交
  10. 22 8月, 2015 3 次提交
  11. 21 8月, 2015 1 次提交
  12. 15 8月, 2015 1 次提交
  13. 12 8月, 2015 3 次提交
  14. 07 8月, 2015 1 次提交
    • N
      regmap: Use different lockdep class for each regmap init call · 3cfe7a74
      Nicolas Boichat 提交于
      Lockdep validator complains about recursive locking and deadlock
      when two different regmap instances are called in a nested order.
      That happens anytime a regmap read/write call needs to access
      another regmap.
      
      This is because, for performance reason, lockdep groups all locks
      initialized by the same mutex_init() in the same lock class.
      Therefore all regmap mutexes are in the same lock class, leading
      to lockdep "nested locking" warnings if a regmap accesses another
      regmap.
      
      In general, it is impossible to establish in advance the hierarchy
      of regmaps, so we make sure that each regmap init call initializes
      its own static lock_class_key. This is done by wrapping all
      regmap_init calls into macros.
      
      This also allows us to give meaningful names to the lock_class_key.
      For example, in rt5677 case, we have in /proc/lockdep_chains:
      irq_context: 0
      [ffffffc0018d2198] &dev->mutex
      [ffffffc0018d2198] &dev->mutex
      [ffffffc001bd7f60] rt5677:5104:(&rt5677_regmap)->_lock
      [ffffffc001bd7f58] rt5677:5096:(&rt5677_regmap_physical)->_lock
      [ffffffc001b95448] &(&base->lock)->rlock
      
      The above would have resulted in a lockdep recursive warning
      previously. This is not the case anymore as the lockdep validator
      now clearly identifies the 2 regmaps as separate.
      Signed-off-by: NNicolas Boichat <drinkcat@chromium.org>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      3cfe7a74
  15. 17 7月, 2015 2 次提交
  16. 14 7月, 2015 1 次提交
  17. 13 7月, 2015 1 次提交
    • L
      regmap: Add better support for devices without readback support · 04dc91ce
      Lars-Peter Clausen 提交于
      Currently regmap requires that a reg_read callback is supplied, otherwise a
      warning is emitted each time regmap_read() is called. This means a device
      or bus without readback support needs to supply dummy reg_read callback.
      Apart from that regmap_read() will still work fine if a cache is used.
      
      Remove the warning and let regmap_readable() return false if not reg_read
      callback is supplied. This means a device no longer has to supply a dummy
      callback if it does not support readback and it also doesn't have to have a
      readable_reg callback that always returns false since this is now implicit.
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      04dc91ce
  18. 10 7月, 2015 3 次提交
  19. 16 6月, 2015 1 次提交
  20. 15 6月, 2015 1 次提交