1. 20 2月, 2017 6 次提交
    • M
      Merge remote-tracking branches 'regulator/topic/anatop',... · 56eff619
      Mark Brown 提交于
      Merge remote-tracking branches 'regulator/topic/anatop', 'regulator/topic/arizona', 'regulator/topic/as3711' and 'regulator/topic/bcm590xx' into regulator-next
      56eff619
    • M
      Merge remote-tracking branches 'regulator/topic/88pm800',... · f88140af
      Mark Brown 提交于
      Merge remote-tracking branches 'regulator/topic/88pm800', 'regulator/topic/88pm8607', 'regulator/topic/aat2870', 'regulator/topic/act8945a' and 'regulator/topic/ad5938' into regulator-next
      f88140af
    • M
    • M
      Merge remote-tracking branches 'regulator/fix/debugfs' and... · 0fe3f971
      Mark Brown 提交于
      Merge remote-tracking branches 'regulator/fix/debugfs' and 'regulator/fix/tps65086' into regulator-linus
      0fe3f971
    • M
    • M
      Merge tag 'regulator-fix-v4.10-rc6' into regulator-linus · 6b80562d
      Mark Brown 提交于
      regulator: Fixes for v4.10
      
      Three changes here, two run of the mill driver specific fixes and a
      change from Mark Rutland which reverts some new device specific ACPI
      binding code which was added during the merge window as there are
      concerns about this sending the wrong signal about usage of regulators
      in ACPI systems.
      
      # gpg: Signature made Fri 03 Feb 2017 11:48:10 GMT
      # gpg:                using RSA key ADE668AA675718B59FE29FEA24D68B725D5487D0
      # gpg:                issuer "broonie@kernel.org"
      # gpg: key 0D9EACE2CD7BEEBC: no public key for trusted key - skipped
      # gpg: key 0D9EACE2CD7BEEBC marked as ultimately trusted
      # gpg: key CCB0A420AF88CD16: no public key for trusted key - skipped
      # gpg: key CCB0A420AF88CD16 marked as ultimately trusted
      # gpg: key 162614E316005C11: no public key for trusted key - skipped
      # gpg: key 162614E316005C11 marked as ultimately trusted
      # gpg: key A730C53A5621E907: no public key for trusted key - skipped
      # gpg: key A730C53A5621E907 marked as ultimately trusted
      # gpg: key 276568D75C6153AD: no public key for trusted key - skipped
      # gpg: key 276568D75C6153AD marked as ultimately trusted
      # gpg: Good signature from "Mark Brown <broonie@sirena.org.uk>" [ultimate]
      # gpg:                 aka "Mark Brown <broonie@debian.org>" [ultimate]
      # gpg:                 aka "Mark Brown <broonie@kernel.org>" [ultimate]
      # gpg:                 aka "Mark Brown <broonie@tardis.ed.ac.uk>" [ultimate]
      # gpg:                 aka "Mark Brown <broonie@linaro.org>" [ultimate]
      # gpg:                 aka "Mark Brown <Mark.Brown@linaro.org>" [ultimate]
      6b80562d
  2. 17 2月, 2017 1 次提交
    • J
      regulator: core: Resolve supplies before disabling unused regulators · 3827b64d
      Javier Martinez Canillas 提交于
      After commit 66d228a2 ("regulator: core: Don't use regulators as
      supplies until the parent is bound"), input supplies aren't resolved
      if the input supplies parent device has not been bound. This prevent
      regulators to hold an invalid reference if its supply parent device
      driver probe is deferred.
      
      But this causes issues on some boards where a PMIC's regulator use as
      input supply a regulator from another PMIC whose driver is registered
      after the driver for the former.
      
      In this case the regulators for the first PMIC will fail to resolve
      input supplies on regulators registration (since the other PMIC wasn't
      probed yet). And when the core attempts to resolve again latter when
      the other PMIC registers its own regulators, it will fail again since
      the parent device isn't bound yet.
      
      This will cause some parent supplies to never be resolved and wrongly
      be disabled on boot due taking them as unused.
      
      To solve this problem, also attempt to resolve the pending regulators
      input supplies before disabling the unused regulators.
      Signed-off-by: NJavier Martinez Canillas <javier@osg.samsung.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      3827b64d
  3. 16 2月, 2017 1 次提交
  4. 14 2月, 2017 2 次提交
  5. 09 2月, 2017 1 次提交
    • D
      regulator: core: simplify _regulator_get() · a4d7641f
      Dmitry Torokhov 提交于
      The code in _regulator_get() got a bit confusing over time, with control
      flow jumping to a label from couple of places. Let's untangle it a bit by
      doing the following:
      
      1. Make handling of missing supplies and substituting them with dummy
      regulators more explicit:
      
      - check if we not have full constraints and refuse considering dummy
        regulators with appropriate message;
      
      - use "switch (get_type)" to handle different types of request explicitly
        as well. "Normal" requests will get dummies, exclusive will not and
        will notify user about that; optional will fail silently.
      
      2. Stop jumping to a label in the middle of the function but instead have
      proper conditional flow. I believe jumps should be reserved for error
      handling, breaking from inner loop, or restarting a loop, but not for
      implementing normal conditional flow.
      Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      a4d7641f
  6. 06 2月, 2017 1 次提交
  7. 04 2月, 2017 5 次提交
  8. 03 2月, 2017 1 次提交
  9. 01 2月, 2017 10 次提交
    • B
      regulator: bcm590xx-regulator: constify regulator_ops structure · 20f860c1
      Bhumika Goyal 提交于
      Declare regulator_ops structure as const as it is only stored in the ops
      field of a regulator_desc structure. This field is of type const, so
      regulator_ops structures having this property can be made const too.
      
      File size before: drivers/regulator/bcm590xx-regulator.o
         text	   data	    bss	    dec	    hex	filename
         1807	   3360	      0	   5167	   142f regulator/bcm590xx-regulator.o
      
      File size after: drivers/regulator/bcm590xx-regulator.o
         text	   data	    bss	    dec	    hex	filename
         2575	   2592	      0	   5167	   142f regulator/bcm590xx-regulator.o
      Signed-off-by: NBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      20f860c1
    • B
      regulator: axp20x-regulator: constify regulator_ops structure · ef306e44
      Bhumika Goyal 提交于
      Declare regulator_ops structure as const as it is only stored in the ops
      field of a regulator_desc structure. This field is of type const, so
      regulator_ops structures having this property can be made const too.
      
      File size before: drivers/regulator/axp20x-regulator.o
         text	   data	    bss	    dec	    hex	filename
        16848	   1232	      0	  18080	   46a0 regulator/axp20x-regulator.o
      
      File size after: drivers/regulator/axp20x-regulator.o
         text	   data	    bss	    dec	    hex	filename
        17888	    192	      0	  18080	   46a0 regulator/axp20x-regulator.o
      Signed-off-by: NBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      ef306e44
    • B
      regulator: as3711-regulator: constify regulator_ops structure · 1bacf463
      Bhumika Goyal 提交于
      Declare regulator_ops structure as const as it is only stored in the ops
      field of a regulator_desc structure. This field is of type const, so
      regulator_ops structures having this property can be made const too.
      
      File size before: drivers/regulator/as3711-regulator.o
         text	   data	    bss	    dec	    hex	filename
         1517	   4144	      0	   5661	   161d regulator/as3711-regulator.o
      
      File size after: drivers/regulator/as3711-regulator.o
         text	   data	    bss	    dec	    hex	filename
         2301	   3376	      0	   5677	   162d regulator/as3711-regulator.o
      Signed-off-by: NBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      1bacf463
    • B
      regulator: arizona-micsupp: constify regulator_ops structure · 2773ead1
      Bhumika Goyal 提交于
      Declare regulator_ops structure as const as it is only stored in the ops
      field of a regulator_desc structure. This field is of type const, so
      regulator_ops structures having this property can be made const too.
      
      File size before: drivers/regulator/arizona-micsupp.o
         text	   data	    bss	    dec	    hex	filename
         1738	    464	      8	   2210	    8a2 regulator/arizona-micsupp.o
      
      File size after: drivers/regulator/arizona-micsupp.o
         text	   data	    bss	    dec	    hex	filename
         1994	    192	      8	   2194	    892 regulator/arizona-micsupp.o
      Signed-off-by: NBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      2773ead1
    • B
      regulator: arizona-ldo1: constify regulator_ops structure · 03d06107
      Bhumika Goyal 提交于
      Declare regulator_ops structure as const as it is only stored in the ops
      field of a regulator_desc structure. This field is of type const, so
      regulator_ops structures having this property can be made const too.
      
      File size before: drivers/regulator/arizona-ldo1.o
         text	   data	    bss	    dec	    hex	filename
         1890	    720	      0	   2610	    a32	drivers/regulator/arizona-ldo1.o
      
      File size after: drivers/regulator/arizona-ldo1.o
         text	   data	    bss	    dec	    hex	filename
         2402	    192	      0	   2594	    a22	drivers/regulator/arizona-ldo1.o
      Signed-off-by: NBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      03d06107
    • B
      regulator: ad5398: constify regulator_ops structure · bb24b9df
      Bhumika Goyal 提交于
      Declare regulator_ops structure as const as it is only stored in the ops
      field of a regulator_desc structure. This field is of type const, so
      regulator_ops structures having this property can be made const too.
      
      File size before: drivers/regulator/ad5398.o
         text	   data	    bss	    dec	    hex	filename
         1707	    672	      0	   2379	    94b	drivers/regulator/ad5398.o
      
      File size after: drivers/regulator/ad5398.o
         text	   data	    bss	    dec	    hex	filename
         1963	    416	      0	   2379	    94b	drivers/regulator/ad5398.o
      Signed-off-by: NBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      bb24b9df
    • B
      regulator: act8945a-regulator: constify regulator_ops structure · 1ed1da3c
      Bhumika Goyal 提交于
      Declare regulator_ops structure as const as it is only stored in the ops
      field of a regulator_desc structure. This field is of type const, so
      regulator_ops structures having this property can be made const too.
      
      File size before: drivers/regulator/act8945a-regulator.o
         text	   data	    bss	    dec	    hex	filename
         3680	    464	      0	   4144	   1030 regulator/act8945a-regulator.o
      
      File size after: drivers/regulator/act8945a-regulator.o
         text	   data	    bss	    dec	    hex	filename
         3936	    192	      0	   4128	   1020 regulator/act8945a-regulator.o
      Signed-off-by: NBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      1ed1da3c
    • B
      regulator: aat2870-regulator: constify regulator_ops structure · 2abf29af
      Bhumika Goyal 提交于
      Declare regulator_ops structure as const as it is only stored in the ops
      field of a regulator_desc structure. This field is of type const, so
      regulator_ops structures having this property can be made const too.
      
      File size before: drivers/regulator/aat2870-regulator.o
         text	   data	    bss	    dec	    hex	filename
          938	   1424	      0	   2362	    93a regulator/aat2870-regulator.o
      
      File size after: drivers/regulator/aat2870-regulator.o
         text	   data	    bss	    dec	    hex	filename
         1194	   1168	      0	   2362	    93a regulator/aat2870-regulator.o
      Signed-off-by: NBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      2abf29af
    • B
      regulator: 88pm8607: constify regulator_ops structure · 32cb5d30
      Bhumika Goyal 提交于
      Declare regulator_ops structures as const as it is only stored in the
      ops field of a regulator_desc structure. This field is of type const, so
      regulator_ops structures having this property can be made const too.
      
      File size before: drivers/regulator/88pm8607.o
         text	   data	    bss	    dec	    hex	filename
         3466	   5488	      0	   8954	   22fa	drivers/regulator/88pm8607.o
      
      File size after: drivers/regulator/88pm8607.o
         text	   data	    bss	    dec	    hex	filename
         3978	   4976	      0	   8954	   22fa	drivers/regulator/88pm8607.o
      Signed-off-by: NBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      32cb5d30
    • B
      regulator: 88pm800: constify regulator_ops structures · b9f19321
      Bhumika Goyal 提交于
      Declare regulator_ops structures as const as they are only stored in the
      ops field of a regulator_desc structure. This field is of type const, so
      regulator_ops structures having this property can be made const too.
      
      File size before: drivers/regulator/88pm800.o
         text	   data	    bss	    dec	    hex	filename
         1001	   6288	      0	   7289	   1c79	drivers/regulator/88pm800.o
      
      File size after: drivers/regulator/88pm800.o
         text	   data	    bss	    dec	    hex	filename
         1513	   5776	      0	   7289	   1c79	drivers/regulator/88pm800.o
      Signed-off-by: NBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      b9f19321
  10. 26 1月, 2017 1 次提交
    • M
      regulator: fixed: Revert support for ACPI interface · 1372cef1
      Mark Rutland 提交于
      This reverts commit 13bed58c (regulator: fixed: add support for ACPI
      interface).
      
      While there does appear to be a practical need to manage regulators on ACPI
      systems, using ad-hoc properties to describe regulators to the kernel presents
      a number of problems (especially should ACPI gain first class support for such
      things), and there are ongoing discussions as to how to manage this.
      
      Until there is a rough consensus, revert commit 13bed58c, which hasn't
      been in a released kernel yet as discussed in [1] and the surrounding thread.
      
      [1] http://lkml.kernel.org/r/20170125184949.x2wkoo7kbaaajkjk@sirena.org.ukSigned-off-by: NMark Rutland <mark.rutland@arm.com>
      Cc: Liam Girdwood <lgirdwood@gmail.com>
      Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
      Cc: Lu Baolu <baolu.lu@linux.intel.com>
      Cc: Mark Brown <broonie@kernel.org>
      Cc: Rafael J. Wysocki <rafael@kernel.org>
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: NMark Brown <broonie@kernel.org>
      1372cef1
  11. 24 1月, 2017 2 次提交
  12. 19 1月, 2017 1 次提交
  13. 16 12月, 2016 1 次提交
  14. 12 12月, 2016 7 次提交