1. 08 2月, 2022 1 次提交
  2. 29 1月, 2022 9 次提交
  3. 24 1月, 2022 1 次提交
  4. 20 1月, 2022 1 次提交
    • R
      regulator: MAX20086: add gpio/consumer.h · b4c18c18
      Randy Dunlap 提交于
      max20086-regulator.c needs <linux/gpio/consumer.h> for an enum, some
      macros, and a function prototype. (seen on ARCH=m68k)
      
      Adding this header file fixes multiple build errors:
      
      ../drivers/regulator/max20086-regulator.c: In function 'max20086_i2c_probe':
      ../drivers/regulator/max20086-regulator.c:217:26: error: storage size of 'flags' isn't known
        217 |         enum gpiod_flags flags;
      ../drivers/regulator/max20086-regulator.c:261:27: error: 'GPIOD_OUT_HIGH' undeclared (first use in this function); did you mean 'GPIOF_INIT_HIGH'?
        261 |         flags = boot_on ? GPIOD_OUT_HIGH : GPIOD_OUT_LOW;
            |                           ^~~~~~~~~~~~~~
      ../drivers/regulator/max20086-regulator.c:261:44: error: 'GPIOD_OUT_LOW' undeclared (first use in this function); did you mean 'GPIOF_INIT_LOW'?
        261 |         flags = boot_on ? GPIOD_OUT_HIGH : GPIOD_OUT_LOW;
      ../drivers/regulator/max20086-regulator.c:262:27: error: implicit declaration of function 'devm_gpiod_get'; did you mean 'devm_gpio_free'? [-Werror=implicit-function-declaration]
        262 |         chip->ena_gpiod = devm_gpiod_get(chip->dev, "enable", flags);
      ../drivers/regulator/max20086-regulator.c:217:26: warning: unused variable 'flags' [-Wunused-variable]
        217 |         enum gpiod_flags flags;
      
      Fixes: bfff546a ("regulator: Add MAX20086-MAX20089 driver")
      Signed-off-by: NRandy Dunlap <rdunlap@infradead.org>
      Reported-by: Nkernel test robot <lkp@intel.com>
      Cc: Watson Chow <watson.chow@avnet.com>
      Cc: Mark Brown <broonie@kernel.org>
      Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Link: https://lore.kernel.org/r/20220115033603.24473-1-rdunlap@infradead.orgSigned-off-by: NMark Brown <broonie@kernel.org>
      b4c18c18
  5. 11 1月, 2022 1 次提交
  6. 07 1月, 2022 1 次提交
  7. 06 1月, 2022 1 次提交
    • K
      regulator: qcom_smd: Align probe function with rpmh-regulator · 14e2976f
      Konrad Dybcio 提交于
      The RPMh regulator driver is much newer and gets more attention, which in
      consequence makes it do a few things better. Update qcom_smd-regulator's
      probe function to mimic what rpmh-regulator does to address a couple of
      issues:
      
      - Probe defer now works correctly, before it used to, well,
        kinda just die.. This fixes reliable probing on (at least) PM8994,
        because Linux apparently cannot deal with supply map dependencies yet..
      
      - Regulator data is now matched more sanely: regulator data is matched
        against each individual regulator node name and throwing an -EINVAL if
        data is missing, instead of just assuming everything is fine and
        iterating over all subsequent array members.
      
      - status = "disabled" will now work for disabling individual regulators in
        DT. Previously it didn't seem to do much if anything at all.
      Signed-off-by: NKonrad Dybcio <konrad.dybcio@somainline.org>
      Link: https://lore.kernel.org/r/20211230023442.1123424-1-konrad.dybcio@somainline.orgSigned-off-by: NMark Brown <broonie@kernel.org>
      14e2976f
  8. 04 1月, 2022 1 次提交
  9. 24 12月, 2021 1 次提交
  10. 16 12月, 2021 1 次提交
  11. 14 12月, 2021 1 次提交
  12. 01 12月, 2021 1 次提交
  13. 30 11月, 2021 2 次提交
  14. 29 11月, 2021 1 次提交
  15. 26 11月, 2021 1 次提交
  16. 24 11月, 2021 1 次提交
  17. 18 11月, 2021 2 次提交
  18. 16 11月, 2021 1 次提交
  19. 23 10月, 2021 3 次提交
  20. 21 10月, 2021 5 次提交
  21. 17 10月, 2021 1 次提交
  22. 09 10月, 2021 1 次提交
    • K
      regulator: s5m8767: do not use reset value as DVS voltage if GPIO DVS is disabled · b16bef60
      Krzysztof Kozlowski 提交于
      The driver and its bindings, before commit 04f9f068 ("regulator:
      s5m8767: Modify parsing method of the voltage table of buck2/3/4") were
      requiring to provide at least one safe/default voltage for DVS registers
      if DVS GPIO is not being enabled.
      
      IOW, if s5m8767,pmic-buck2-uses-gpio-dvs is missing, the
      s5m8767,pmic-buck2-dvs-voltage should still be present and contain one
      voltage.
      
      This requirement was coming from driver behavior matching this condition
      (none of DVS GPIO is enabled): it was always initializing the DVS
      selector pins to 0 and keeping the DVS enable setting at reset value
      (enabled).  Therefore if none of DVS GPIO is enabled in devicetree,
      driver was configuring the first DVS voltage for buck[234].
      
      Mentioned commit 04f9f068 ("regulator: s5m8767: Modify parsing
      method of the voltage table of buck2/3/4") broke it because DVS voltage
      won't be parsed from devicetree if DVS GPIO is not enabled.  After the
      change, driver will configure bucks to use the register reset value as
      voltage which might have unpleasant effects.
      
      Fix this by relaxing the bindings constrain: if DVS GPIO is not enabled
      in devicetree (therefore DVS voltage is also not parsed), explicitly
      disable it.
      
      Cc: <stable@vger.kernel.org>
      Fixes: 04f9f068 ("regulator: s5m8767: Modify parsing method of the voltage table of buck2/3/4")
      Signed-off-by: NKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
      Acked-by: NRob Herring <robh@kernel.org>
      Message-Id: <20211008113723.134648-2-krzysztof.kozlowski@canonical.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      b16bef60
  23. 05 10月, 2021 1 次提交
  24. 04 10月, 2021 1 次提交