1. 25 Sep, 2019 3 commits
    • Linus Walleij's avatar
      thermal: db8500: Rewrite to be a pure OF sensor · 6c375ecc
      Linus Walleij authored
      This patch rewrites the DB8500 thermal sensor to be a
      pure OF sensor, so that it can be used with thermal zones
      defined in the device tree.
      
      This driver was initially merged before we had generic
      thermal zone device tree bindings, and now it gets
      modernized to the way we do things these days.
      
      The old driver depended on a set of trigger points
      provided in the device tree or platform data to
      interpolate the current temperature between trigger
      points depending on whether the trend was rising or
      falling. This was bad because the trigger points should
      be used for defining temperature zone policies and
      bind to cooling devices.
      
      As the PRCMU (power reset control management unit) can
      only issue IRQs when we pass temperature trigger points
      upward or downward We instead define a number of
      temperature points inside the driver ranging from
      15 to 100 degrees celsius. The effect is that when
      we register the device we quickly trigger 15, 20 ... up
      to the room temperature in succession and then we
      get continous event IRQs also under normal operating
      conditions, and the temperature of the system is now
      reported more accurately (+/- 2.5 degrees celsius)
      while in the past the first trigger point was at 70
      degrees and the average temperature was simply reported
      as 35 degrees celsius (between 70 degrees and 0) until
      we passed 70 degrees which didn't accurately represent
      the temperature of the system.
      
      As a result of dropping all the trigger points from the
      driver and reusing the core DT thermal zone management
      code we reduce the code footprint quite a bit.
      
      Cc: Vincent Guittot <vincent.guittot@linaro.org>
      Suggested-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Reviewed-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
      6c375ecc
    • Linus Walleij's avatar
      thermal: db8500: Use dev helper variable · 3de9e4df
      Linus Walleij authored
      The code gets easier to read like this.
      
      Cc: Vincent Guittot <vincent.guittot@linaro.org>
      Reviewed-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
      3de9e4df
    • Linus Walleij's avatar
      thermal: db8500: Finalize device tree conversion · cb063a83
      Linus Walleij authored
      At some point there was an attempt to convert the DB8500
      thermal sensor to device tree: a probe path was added
      and the device tree was augmented for the Snowball board.
      The switchover was never completed: instead the thermal
      devices came from from the PRCMU MFD device and the probe
      on the Snowball was confused as another set of configuration
      appeared from the device tree.
      
      Move over to a device-tree only approach, as we fixed up
      the device trees.
      
      Cc: Vincent Guittot <vincent.guittot@linaro.org>
      Acked-by: default avatarLee Jones <lee.jones@linaro.org>
      Reviewed-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
      cb063a83
  2. 22 Sep, 2019 1 commit
  3. 09 Sep, 2019 1 commit
    • Linus Torvalds's avatar
      Merge tag 'regulator-fix-v5.3-rc8' of... · 56037cad
      Linus Torvalds authored
      Merge tag 'regulator-fix-v5.3-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
      
      Pull regulator fixes from Mark Brown:
       "This is obviouly very late, containing three small and simple driver
        specific fixes.
      
        The main one is the TWL fix, this fixes issues with cpufreq on the
        PMICs used with BeagleBoard generation OMAP SoCs which had been broken
        due to changes in the generic OPP code exposing a bug in the regulator
        driver for these devices causing them to think that OPPs weren't
        supported on the system.
      
        Sorry about sending this so late, I hadn't registered that the TWL
        issue manifested in cpufreq"
      
      * tag 'regulator-fix-v5.3-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator:
        regulator: twl: voltage lists for vdd1/2 on twl4030
        regulator: act8945a-regulator: fix ldo register addresses in set_mode hook
        regulator: slg51000: Fix a couple NULL vs IS_ERR() checks
      56037cad
  4. 08 Sep, 2019 4 commits
  5. 07 Sep, 2019 4 commits
  6. 06 Sep, 2019 17 commits
  7. 05 Sep, 2019 9 commits
  8. 04 Sep, 2019 1 commit
    • Al Viro's avatar
      configfs: provide exclusion between IO and removals · b0841eef
      Al Viro authored
      Make sure that attribute methods are not called after the item
      has been removed from the tree.  To do so, we
      	* at the point of no return in removals, grab ->frag_sem
      exclusive and mark the fragment dead.
      	* call the methods of attributes with ->frag_sem taken
      shared and only after having verified that the fragment is still
      alive.
      
      	The main benefit is for method instances - they are
      guaranteed that the objects they are accessing *and* all ancestors
      are still there.  Another win is that we don't need to bother
      with extra refcount on config_item when opening a file -
      the item will be alive for as long as it stays in the tree, and
      we won't touch it/attributes/any associated data after it's
      been removed from the tree.
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      b0841eef