1. 01 3月, 2013 1 次提交
    • N
      regulator: core: fix documentation error in regulator_allow_bypass · 9345dfb8
      Nishanth Menon 提交于
      commit f59c8f9f (regulator: core: Support bypass mode)
      has a short documentation error around the regulator_allow_bypass
      parameter 'enable' which is documented as 'allow'.
      
      This generates kernel-doc warning as follows:
      ./scripts/kernel-doc drivers/regulator/core.c >/dev/null
      Warning(drivers/regulator/core.c:2841): No description found for parameter 'enable'
      Warning(drivers/regulator/core.c:2841): Excess function parameter 'allow' description in 'regulator_allow_bypass'
      
      Cc: Liam Girdwood <lgirdwood@gmail.com>
      Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: NNishanth Menon <nm@ti.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      9345dfb8
  2. 15 2月, 2013 1 次提交
    • R
      regulator: Fix memory garbage dev_err printout. · 9c7b4e8a
      Russ Dill 提交于
      commit dd8004af: 'regulator: core: Log when a device causes a voltage
      constraint fail', tried to print out some information about the
      check consumer min/max uV fixup, however, it uses a garbage pointer
      left over from list_for_each_entry leading to boot messages in the
      form:
      
      '[    2.079890] <RANDOM ASCII>: Restricting voltage, 3735899821-4294967295uV'
      
      Because it references regulator->dev, it could potentially read memory from
      anywhere causing a panic.
      
      This patch instead uses rdev and the updated min/max uV values.
      Signed-off-by: NRuss Dill <Russ.Dill@ti.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      9c7b4e8a
  3. 08 2月, 2013 1 次提交
  4. 05 2月, 2013 1 次提交
  5. 03 1月, 2013 1 次提交
  6. 25 12月, 2012 2 次提交
  7. 15 12月, 2012 1 次提交
  8. 11 12月, 2012 1 次提交
  9. 06 12月, 2012 1 次提交
  10. 29 11月, 2012 2 次提交
  11. 28 11月, 2012 1 次提交
    • A
      regulator: core: Allow specific minimal selector for starting linear mapping · 33234e79
      Axel Lin 提交于
      Some drivers (at least 3 drivers) have such variant of linear mapping that
      the first few selectors are invalid and the reset are linear mapping.
      Let's support this case in core.
      
      This patch adds linear_min_sel in struct regulator_desc,
      so we can allow specific minimal selector for starting linear mapping.
      Then extends regulator_[map|list]_voltage_linear() to support this feature.
      
      Note that for selectors less than min_linear_index, we need count them to
      n_voltages so regulator_list_voltage() won't fail while checking the boundary
      for selector before calling list_voltage callback.
      Signed-off-by: NAxel Lin <axel.lin@ingics.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      33234e79
  12. 15 11月, 2012 1 次提交
  13. 14 11月, 2012 1 次提交
  14. 29 10月, 2012 1 次提交
  15. 15 10月, 2012 1 次提交
  16. 10 9月, 2012 2 次提交
  17. 08 9月, 2012 2 次提交
  18. 07 9月, 2012 1 次提交
  19. 29 8月, 2012 1 次提交
  20. 21 8月, 2012 2 次提交
    • T
      workqueue: deprecate flush[_delayed]_work_sync() · 43829731
      Tejun Heo 提交于
      flush[_delayed]_work_sync() are now spurious.  Mark them deprecated
      and convert all users to flush[_delayed]_work().
      
      If you're cc'd and wondering what's going on: Now all workqueues are
      non-reentrant and the regular flushes guarantee that the work item is
      not pending or running on any CPU on return, so there's no reason to
      use the sync flushes at all and they're going away.
      
      This patch doesn't make any functional difference.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Paul Mundt <lethal@linux-sh.org>
      Cc: Ian Campbell <ian.campbell@citrix.com>
      Cc: Jens Axboe <axboe@kernel.dk>
      Cc: Mattia Dongili <malattia@linux.it>
      Cc: Kent Yoder <key@linux.vnet.ibm.com>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Jiri Kosina <jkosina@suse.cz>
      Cc: Karsten Keil <isdn@linux-pingi.de>
      Cc: Bryan Wu <bryan.wu@canonical.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Alasdair Kergon <agk@redhat.com>
      Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
      Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: linux-wireless@vger.kernel.org
      Cc: Anton Vorontsov <cbou@mail.ru>
      Cc: Sangbeom Kim <sbkim73@samsung.com>
      Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Eric Van Hensbergen <ericvh@gmail.com>
      Cc: Takashi Iwai <tiwai@suse.de>
      Cc: Steven Whitehouse <swhiteho@redhat.com>
      Cc: Petr Vandrovec <petr@vandrovec.name>
      Cc: Mark Fasheh <mfasheh@suse.com>
      Cc: Christoph Hellwig <hch@infradead.org>
      Cc: Avi Kivity <avi@redhat.com> 
      43829731
    • R
      regulator: fix kernel-doc warnings in drivers/regulator/core.c · 296c6566
      Randy Dunlap 提交于
      Fix regulator kernel-doc warnings:
      
      Warning(drivers/regulator/core.c:2308): No description found for parameter 'rdev'
      Warning(drivers/regulator/core.c:2308): Excess function parameter 'regulator' description in 'regulator_set_voltage_time_sel'
      Signed-off-by: NRandy Dunlap <rdunlap@xenotime.net>
      Cc:	Liam Girdwood <lrg@ti.com>
      Cc:	Mark Brown <broonie@opensource.wolfsonmicro.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      296c6566
  21. 10 8月, 2012 2 次提交
  22. 08 8月, 2012 2 次提交
  23. 04 8月, 2012 1 次提交
  24. 20 7月, 2012 1 次提交
  25. 13 7月, 2012 2 次提交
  26. 07 7月, 2012 1 次提交
  27. 05 7月, 2012 1 次提交
  28. 04 7月, 2012 5 次提交
    • M
      regulator: core: Add core support for GPIO controlled enable lines · 65f73508
      Mark Brown 提交于
      It is very common for regulators to support having their enable signal
      controlled by a GPIO. Since there are a bunch of fiddly things to get
      right like handling the operations when the enable signal is tied to
      a rail and it's just replicated code add support for this to the core.
      
      Drivers should set ena_gpio in their config if they have a GPIO control,
      using ena_gpio_flags to specify any flags (including GPIOF_OUT_INIT_ for
      the initial state) and ena_gpio_invert if the GPIO is active low. The
      core will then override any enable and disable operations the driver has
      and instead control the specified GPIO.
      
      This will in the future also allow us to further extend the core by
      identifying when several enable signals have been tied together and
      handling this properly.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      65f73508
    • M
      regulator: core: Factor out enable and disable operations some more · 5c5659d0
      Mark Brown 提交于
      Create new _regulator_do_enable() and _regulator_do_disable() operations
      which deal with the mechanics of performing the enable and disable, partly
      to cut down on the levels of indentation and partly to support some future
      work.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      5c5659d0
    • M
      regulator: core: Allow fixed enable_time to be set in the regulator_desc · 79511ed3
      Mark Brown 提交于
      Many regulators have a fixed specification for their enable time. Allow
      this to be set in the regulator_desc as a number to save them having to
      implement an explicit operation.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      79511ed3
    • M
      regulator: core: Check that the selector from map_voltage() is valid · e113d792
      Mark Brown 提交于
      Lots of regulator drivers have checks in their map_voltage() functions
      to verify that the result of the mapping is in the range originally
      specified. Factor these out in the core and provide a bit of extra
      defensiveness for other drivers by doing the check in the core.
      
      Since we're now doing a list_voltage() earlier move the current mapping
      back to a voltage out into the set_voltage() call to save redoing it.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      e113d792
    • M
      regulator: core: Support fixed voltages in regulator_is_supported_voltage() · c5f3939b
      Mark Brown 提交于
      Currently regulator_is_supported_voltage() works by enumerating the set
      of voltages which can be set by the regulator but the checks we're doing
      to impose constraints mean that if we can't vary the voltage we'll not
      report any voltages as supported even though the regulator is actually
      set at that voltage.
      
      We could fix the voltage listing but this would mean that list_voltage()
      could end up going to the hardware to get the current voltage which isn't
      expected (it's supposed to be very cheap) so instead special case things
      when we can't change the voltage and compare the requested range against
      the current voltage.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      c5f3939b