1. 19 Feb, 2017 11 commits
    • Mark Brown's avatar
      Merge remote-tracking branches 'regulator/topic/pv88080',... · 0755fad8
      Mark Brown authored
      Merge remote-tracking branches 'regulator/topic/pv88080', 'regulator/topic/pv88090', 'regulator/topic/qcom-smd', 'regulator/topic/rc5t583' and 'regulator/topic/rn5t618' into regulator-next
      0755fad8
    • Mark Brown's avatar
      Merge remote-tracking branches 'regulator/topic/pbias',... · 56590d75
      Mark Brown authored
      Merge remote-tracking branches 'regulator/topic/pbias', 'regulator/topic/pcap', 'regulator/topic/pcf50633', 'regulator/topic/pfuze100' and 'regulator/topic/pv88060' into regulator-next
      56590d75
    • Mark Brown's avatar
      Merge remote-tracking branches 'regulator/topic/max77802',... · cecc2795
      Mark Brown authored
      Merge remote-tracking branches 'regulator/topic/max77802', 'regulator/topic/max8907', 'regulator/topic/max8925', 'regulator/topic/max8952' and 'regulator/topic/palmas' into regulator-next
      cecc2795
    • Mark Brown's avatar
      Merge remote-tracking branches 'regulator/topic/ltc3676',... · 84e58d19
      Mark Brown authored
      Merge remote-tracking branches 'regulator/topic/ltc3676', 'regulator/topic/max14577', 'regulator/topic/max77620', 'regulator/topic/max77686' and 'regulator/topic/max77693' into regulator-next
      84e58d19
    • Mark Brown's avatar
      Merge remote-tracking branches 'regulator/topic/cpcap',... · 250320b0
      Mark Brown authored
      Merge remote-tracking branches 'regulator/topic/cpcap', 'regulator/topic/fan53555', 'regulator/topic/gpio', 'regulator/topic/hi655x' and 'regulator/topic/lp8755' into regulator-next
      250320b0
    • Mark Brown's avatar
      Merge remote-tracking branches 'regulator/topic/anatop',... · 56eff619
      Mark Brown authored
      Merge remote-tracking branches 'regulator/topic/anatop', 'regulator/topic/arizona', 'regulator/topic/as3711' and 'regulator/topic/bcm590xx' into regulator-next
      56eff619
    • Mark Brown's avatar
      Merge remote-tracking branches 'regulator/topic/88pm800',... · f88140af
      Mark Brown authored
      Merge remote-tracking branches 'regulator/topic/88pm800', 'regulator/topic/88pm8607', 'regulator/topic/aat2870', 'regulator/topic/act8945a' and 'regulator/topic/ad5938' into regulator-next
      f88140af
    • Mark Brown's avatar
    • Mark Brown's avatar
      Merge remote-tracking branches 'regulator/fix/debugfs' and... · 0fe3f971
      Mark Brown authored
      Merge remote-tracking branches 'regulator/fix/debugfs' and 'regulator/fix/tps65086' into regulator-linus
      0fe3f971
    • Mark Brown's avatar
    • Mark Brown's avatar
      Merge tag 'regulator-fix-v4.10-rc6' into regulator-linus · 6b80562d
      Mark Brown authored
      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. 16 Feb, 2017 2 commits
    • Javier Martinez Canillas's avatar
      regulator: core: Resolve supplies before disabling unused regulators · 3827b64d
      Javier Martinez Canillas authored
      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: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      3827b64d
    • Leonard Crestez's avatar
      regulator: Fix regulator_summary for deviceless consumers · e42a46b6
      Leonard Crestez authored
      It is allowed to call regulator_get with a NULL dev argument
      (_regulator_get explicitly checks for it) but this causes an error later
      when printing /sys/kernel/debug/regulator_summary.
      
      Fix this by explicitly handling "deviceless" consumers in the debugfs code.
      Signed-off-by: default avatarLeonard Crestez <leonard.crestez@nxp.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      Cc: stable@vger.kernel.org
      e42a46b6
  3. 13 Feb, 2017 2 commits
  4. 08 Feb, 2017 1 commit
    • Dmitry Torokhov's avatar
      regulator: core: simplify _regulator_get() · a4d7641f
      Dmitry Torokhov authored
      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: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      a4d7641f
  5. 05 Feb, 2017 1 commit
  6. 04 Feb, 2017 7 commits
  7. 03 Feb, 2017 1 commit
  8. 31 Jan, 2017 15 commits
    • Bhumika Goyal's avatar
      regulator: rn5t618: constify regulator_ops structure · 243842b8
      Bhumika Goyal authored
      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/rn5t618-regulator.o
         text	   data	    bss	    dec	    hex	filename
          375	   5392	      0	   5767	   1687 regulator/rn5t618-regulator.o
      
      File size after: drivers/regulator/rn5t618-regulator.o
         text	   data	    bss	    dec	    hex	filename
          631	   5136	      0	   5767	   1687 regulator/rn5t618-regulator.o
      Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      243842b8
    • Bhumika Goyal's avatar
      regulator: rc5t583-regulator: constify regulator_ops structure · fb74036b
      Bhumika Goyal authored
      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/rc5t583-regulator.o
         text	   data	    bss	    dec	    hex	filename
          931	   3824	      0	   4755	   1293 regulator/rc5t583-regulator.o
      
      File size after: drivers/regulator/rc5t583-regulator.o
         text	   data	    bss	    dec	    hex	filename
         1187	   3568	      0	   4755	   1293 regulator/rc5t583-regulator.o
      Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      fb74036b
    • Bhumika Goyal's avatar
      regulator: pv88090-regulator: constify regulator_ops structure · 36fe20c7
      Bhumika Goyal authored
      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/pv88090-regulator.o
         text	   data	    bss	    dec	    hex	filename
         2829	   2032	      8	   4869	   1305 regulator/pv88090-regulator.o
      
      File size after: drivers/regulator/pv88090-regulator.o
         text	   data	    bss	    dec	    hex	filename
         3341	   1520	      8	   4869	   1305 regulator/pv88090-regulator.o
      Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      36fe20c7
    • Bhumika Goyal's avatar
      regulator: pv88080-regulator: constify regulator_ops structure · d4fdf5e1
      Bhumika Goyal authored
      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/pv88080-regulator.o
         text	   data	    bss	    dec	    hex	filename
         3828	   1808	      8	   5644	   160c regulator/pv88080-regulator.o
      
      File size after: drivers/regulator/pv88080-regulator.o
         text	   data	    bss	    dec	    hex	filename
         4340	   1296	      8	   5644	   160c regulator/pv88080-regulator.o
      Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      d4fdf5e1
    • Bhumika Goyal's avatar
      regulator: pv88060-regulator: constify regulator_ops structure · ea51874c
      Bhumika Goyal authored
      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/pv88060-regulator.o
         text	   data	    bss	    dec	    hex	filename
         6195	    752	      8	   6955	   1b2b regulator/pv88060-regulator.o
      
      File size after: drivers/regulator/pv88060-regulator.o
         text	   data	    bss	    dec	    hex	filename
         6739	    240	      8	   6987	   1b4b regulator/pv88060-regulator.o
      Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      ea51874c
    • Bhumika Goyal's avatar
      regulator: pfuze100-regulator: constify regulator_ops structure · e5053853
      Bhumika Goyal authored
      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/pfuze100-regulator.o
         text	   data	    bss	    dec	    hex	filename
         3552	  12528	     16	  16096	   3ee0 regulator/pfuze100-regulator.o
      
      File size after: drivers/regulator/pfuze100-regulator.o
         text	   data	    bss	    dec	    hex	filename
         4576	  11496	     16	  16088	   3ed8 regulator/pfuze100-regulator.o
      Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      e5053853
    • Bhumika Goyal's avatar
      regulator: pcf50633-regulator: constify regulator_ops structure · 0be79431
      Bhumika Goyal authored
      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/pcf50633-regulator.o
         text	   data	    bss	    dec	    hex	filename
         2763	    464	      0	   3227	    c9b regulator/pcf50633-regulator.o
      
      File size after: drivers/regulator/pcf50633-regulator.o
         text	   data	    bss	    dec	    hex	filename
         3019	    192	      0	   3211	    c8b regulator/pcf50633-regulator.o
      Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      0be79431
    • Bhumika Goyal's avatar
      regulator: pcap-regulator: constify regulator_ops structure · 00804e6a
      Bhumika Goyal authored
      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/pcap-regulator.o
         text	   data	    bss	    dec	    hex	filename
         5503	    564	      0	   6067	   17b3 regulator/pcap-regulator.o
      
      File size after: drivers/regulator/pcap-regulator.o
         text	   data	    bss	    dec	    hex	filename
         5759	    308	      0	   6067	   17b3 regulator/pcap-regulator.o
      Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      00804e6a
    • Bhumika Goyal's avatar
      regulator: pbias-regulator: constify regulator_ops structure · a180df71
      Bhumika Goyal authored
      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/pbias-regulator.o
         text	   data	    bss	    dec	    hex	filename
         2545	    624	      0	   3169	    c61 regulator/pbias-regulator.o
      
      File size after: drivers/regulator/pbias-regulator.o
         text	   data	    bss	    dec	    hex	filename
         2801	    368	      0	   3169	    c61 regulator/pbias-regulator.o
      Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      a180df71
    • Bhumika Goyal's avatar
      regulator: palmas-regulator: constify regulator_ops structure · 0e5a7680
      Bhumika Goyal authored
      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/palmas-regulator.o
         text	   data	    bss	    dec	    hex	filename
         9752	   6296	    288	  16336	   3fd0 regulator/palmas-regulator.o
      
      File size after: drivers/regulator/palmas-regulator.o
         text	   data	    bss	    dec	    hex	filename
        12856	   3480	      8	  16344	   3fd0 regulator/palmas-regulator.o
      Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      0e5a7680
    • Bhumika Goyal's avatar
      regulator: max8952: constify regulator_ops structure · 6e09f4af
      Bhumika Goyal authored
      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/max8952.o
         text	   data	    bss	    dec	    hex	filename
         3048	    496	      0	   3544	    dd8	drivers/regulator/max8952.o
      
      File size after: drivers/regulator/max8952.o
         text	   data	    bss	    dec	    hex	filename
         3304	    240	      0	   3544	    dd8	drivers/regulator/max8952.o
      Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      6e09f4af
    • Bhumika Goyal's avatar
      regulator: max8925-regulator: constify regulator_ops structure · 85214c9a
      Bhumika Goyal authored
      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/max8925-regulator.o
         text	   data	    bss	    dec	    hex	filename
         1356	   7184	      0	   8540	   215c regulator/max8925-regulator.o
      
      File size after: drivers/regulator/max8925-regulator.o
         text	   data	    bss	    dec	    hex	filename
         1868	   6664	      0	   8532	   2154 regulator/max8925-regulator.o
      Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      85214c9a
    • Bhumika Goyal's avatar
      regulator: max8907-regulator: constify regulator_ops structure · 88c9d47a
      Bhumika Goyal authored
      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/max8907-regulator.o
         text	   data	    bss	    dec	    hex	filename
         1384	   9424	    256	  11064	   2b38 regulator/max8907-regulator.o
      
      File size after: drivers/regulator/max8907-regulator.o
         text	   data	    bss	    dec	    hex	filename
         2664	   8400	      0	  11064	   2b38 regulator/max8907-regulator.o
      Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      88c9d47a
    • Bhumika Goyal's avatar
      regulator: max77802-regulator: constify regulator_ops structure · 0301987a
      Bhumika Goyal authored
      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/max77802-regulator.o
         text	   data	    bss	    dec	    hex	filename
        11811	   1552	      0	  13363	   3433 regulator/max77802-regulator.o
      
      File size after: drivers/regulator/max77802-regulator.o
         text	   data	    bss	    dec	    hex	filename
        13091	    272	      0	  13363	   3433 regulator/max77802-regulator.o
      Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      0301987a
    • Bhumika Goyal's avatar
      regulator: max77693-regulator: constify regulator_ops structure · b68f9078
      Bhumika Goyal authored
      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/max77693-regulator.o
         text	   data	    bss	    dec	    hex	filename
         2230	    720	      0	   2950	    b86 regulator/max77693-regulator.o
      
      File size after: drivers/regulator/max77693-regulator.o
         text	   data	    bss	    dec	    hex	filename
         2486	    464	      0	   2950	    b86 regulator/max77693-regulator.o
      Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      b68f9078