14 May, 2012
5 commits
-
Signed-off-by: Axel Lin
Signed-off-by: Mark Brown -
If we fail while registering a regulator make sure we release the supply
for the regulator if there is one.Signed-off-by: Mark Brown
Acked-by: Liam Girdwood
Cc: stable@vger.kernel.org -
Signed-off-by: Axel Lin
Acked-by: Laxman Dewangan
Signed-off-by: Mark Brown -
Signed-off-by: Axel Lin
Acked-by: Laxman Dewangan
Signed-off-by: Mark Brown -
Integer division may truncate the result.
Use DIV_ROUND_UP to ensure simple linear voltage mappings falls within the
specified range.Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
13 May, 2012
2 commits
-
Add dt support for the pmu device tps62360 and
Add binding documentation with example.
With this patch driver will support both device-tree and
non-device tree registration.Signed-off-by: Laxman Dewangan
Signed-off-by: Mark Brown -
Convert platform data member regulator_init_data to pointer type.
This will avoid the copy of entire regualator init data into
platform data member when adding dt support and it can be achieve
by simple assignment:
pdata->init_data = of_get_regulator_init_data(dev, dev->of_node);Signed-off-by: Laxman Dewangan
Signed-off-by: Mark Brown
12 May, 2012
10 commits
-
Add devicetree based initialization support for TI tps65910 regulators.
Signed-off-by: Rhyland Klein
Signed-off-by: Mark Brown -
Signed-off-by: Axel Lin
Signed-off-by: Mark Brown -
da903x_list_voltage does not return correct voltage for da9030 ldo14.
Implement da9030_list_ldo14_voltage to return correct voltage for da9030 ldo14.Signed-off-by: Axel Lin
Signed-off-by: Mark Brown -
Signed-off-by: Mark Brown
-
Update the driver to use all the regmap based helpers, saving a nice chunk
of code (especially for the DCDCs).Signed-off-by: Mark Brown
-
Only the alive LDOs can actually use this as all the other regulators have
two linear ranges.Signed-off-by: Mark Brown
-
A lot of regulator hardware maps selectors on to voltages with a simple
linear mapping functionselector = base + (selector * step size)
Provide off the shelf list_voltage() and map_voltage() operations which
use new min_uV and uV_step members in the regulator_desc to implement
this function.Signed-off-by: Mark Brown
Acked-by: Liam Girdwood -
In order to allow more drivers to factor things out into data allow
drivers to provide a mapping function to convert voltages into selectors.
This allows any driver to use set_voltage_sel(). The existing mapping
based on iterating over list_voltage() is provided as an operation which
can be assigned to the new map_voltage() function though for ease of
transition it is treated as the default.Signed-off-by: Mark Brown
Acked-by: Liam Girdwood -
Conflicts:
drivers/regulator/88pm8607.c (simple overlap with a bugfix in v3.4) -
…and 'regulator/topic/register' into regulator-next
10 May, 2012
3 commits
-
The core really wants a struct device to be supplied for regulators and
there's no reason this should be impossible so provide one so complain
if we didn't get one.Signed-off-by: Mark Brown
Acked-by: Liam Girdwood -
This will be becoming mandatory.
Signed-off-by: Mark Brown
Acked-by: Liam Girdwood -
Register all normal regulators rather than skipping unconfigured ones now
that the core can handle regulators without init data. Skip the boost and
isink regulators since they are normally controlled by other drivers.Signed-off-by: Mark Brown
09 May, 2012
4 commits
-
The regulators in the twl4030 can provide some voltage settings
that are not offically supported.
These settings are disabled by default, but can be enabled with
CONFIG_TWL4030_ALLOW_UNSUPPORTED=y
However
- that config variable is not mentioned in any Kconfig so cannot
be used, and
- a global setting is clumsy - a per regulator setting would be
better.So define a new 'feature' flag that a board file can set to enable
these unsupported volatages for boards which need them.This flag cannot (yet) be set using device-tree.
Signed-off-by: NeilBrown
Signed-off-by: Mark Brown -
twl-regulator has a collection of feature flags, some defined
in twl-core.c and one defined in i2c/twl.h.
This is confusing for anyone adding a new feature flag.So collect them together and place them in twl.h immediately
after the structure in which they are initially set.Signed-off-by: NeilBrown
Signed-off-by: Mark Brown -
Signed-off-by: Axel Lin
Acked-by: Laxman Dewangan
Signed-off-by: Mark Brown -
This makes logging a bit clearer as it gives the actual bus location and
makes things like board hookup a bit smoother.Signed-off-by: Mark Brown
08 May, 2012
3 commits
-
Fix multiple stylistic issue like:
- The print message should be not break into multiple line.
- line gap after variable declaration and statement.
- checkpatch error.
- some typo.Some enhancement on error message printing to print error value
also along with proper text.Avoid voltage_base conversion to microvolts every time.
Put init functions in init section.
Using efficient function inplace of calling multiple function
to reduce the code size.Signed-off-by: Laxman Dewangan
Signed-off-by: Mark Brown -
Signed-off-by: Mark Brown
-
Signed-off-by: Mark Brown
07 May, 2012
5 commits
-
Settling time is require when there is voltage output change.
Implement set_voltage_time_sel() callback which returns delay time
for voltage change to settle down to new value.Signed-off-by: Laxman Dewangan
Signed-off-by: Mark Brown -
Enable cache of device register using regmap cache RBTREE.
Signed-off-by: Laxman Dewangan
Signed-off-by: Mark Brown -
The driver of da9052 is buggy due to the iteration loop of device tree.
This patch fix the loop condition to make the driver work with device tree.Signed-off-by: Ying-Chun Liu (PaulLiu)
Signed-off-by: Mark Brown -
Add property for the gpio flag open drain when registering
fixed regulator.Signed-off-by: Laxman Dewangan
Signed-off-by: Mark Brown -
Pull x86 fixes form Peter Anvin
* 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
intel_mid_powerbtn: mark irq as IRQF_NO_SUSPEND
arch/x86/platform/geode/net5501.c: change active_low to 0 for LED driver
x86, relocs: Remove an unused variable
asm-generic: Use __BITS_PER_LONG in statfs.h
x86/amd: Re-enable CPU topology extensions in case BIOS has disabled it
06 May, 2012
1 commit
-
Pull an ACPI patch from Len Brown:
"It fixes a D3 issue new in 3.4-rc1."By Lin Ming via Len Brown:
* 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux:
ACPI: Fix D3hot v D3cold confusion
05 May, 2012
3 commits
-
Before this patch, ACPI_STATE_D3 incorrectly referenced D3hot
in some places, but D3cold in other places.After this patch, ACPI_STATE_D3 always means ACPI_STATE_D3_COLD;
and all references to D3hot use ACPI_STATE_D3_HOT.ACPI's _PR3 method is used to enter both D3hot and D3cold states.
What distinguishes D3hot from D3cold is the presence _PR3
(Power Resources for D3hot) If these resources are all ON,
then the state is D3hot. If _PR3 is not present,
or all _PR0 resources for the devices are OFF,
then the state is D3cold.This patch applies after Linux-3.4-rc1.
A future syntax cleanup may remove ACPI_STATE_D3
to emphasize that it always means ACPI_STATE_D3_COLD.Signed-off-by: Lin Ming
Acked-by: Rafael J. Wysocki
Reviewed-by: Aaron Lu
Signed-off-by: Len Brown -
Pull timer fix from Thomas Gleixner.
* 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
rtc: Fix possible null pointer dereference in rtc-mpc5121.c -
So that the power button still wakes up the platform.
Signed-off-by: Pierre Tardy
Link: http://lkml.kernel.org/r/20120504210244.F2EA5A018B@akpm.mtv.corp.google.com
Tested-by: Kangkai Yin
Tested-by: Yong Wang
Signed-off-by: Kirill A. Shutemov
Signed-off-by: Alan Cox
Cc: Matthew Garrett
Signed-off-by: Andrew Morton
Signed-off-by: H. Peter Anvin
04 May, 2012
4 commits
-
Pull drm fixes from Dave Airlie:
"Some minor fixes from Intel and a radeon fix.I have the nouveau fix for the i2c regression queued for next week,
its mostly a revert and seems to work on the system it was originally
introduced for thanks to some i2c core changes."* 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
drm/radeon: clarify and extend wb setup on APUs and NI+ asics
drm/i915: enable dip before writing data on gen4
fixing dmi match for hp t5745 and hp st5747 thin client
drm/i915: Only enable IPS polling for gen5
drm/i915: Do not read non-existent DPLL registers on PCH hardware -
Pull one small fix for md/bitmaps from NeilBrown:
"This fixes a regression that was introduced in the merge window."* tag 'md-3.4-fixes' of git://neil.brown.name/md:
md/bitmap: fix calculation of 'chunks' - missing shift. -
Signed-off-by: Axel Lin
Signed-off-by: Mark Brown -
Signed-off-by: Axel Lin
Signed-off-by: Mark Brown