<feed xmlns='http://www.w3.org/2005/Atom'>
<title>talos-op-linux/include/linux/power_supply.h, branch v3.6-rc2</title>
<subtitle>Talos™ II Linux sources for OpenPOWER</subtitle>
<id>https://git.raptorcs.com/git/talos-op-linux/atom?h=v3.6-rc2</id>
<link rel='self' href='https://git.raptorcs.com/git/talos-op-linux/atom?h=v3.6-rc2'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/'/>
<updated>2012-07-14T03:41:58+00:00</updated>
<entry>
<title>power_supply: Add min/max alert properties for CAPACITY, TEMP, TEMP_AMBIENT</title>
<updated>2012-07-14T03:41:58+00:00</updated>
<author>
<name>Ramakrishna Pallala</name>
<email>ramakrishna.pallala@intel.com</email>
</author>
<published>2012-07-05T11:29:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=e908c41806bdb9151c8f875c4f9d73c6f66e3bc8'/>
<id>urn:sha1:e908c41806bdb9151c8f875c4f9d73c6f66e3bc8</id>
<content type='text'>
Minimum and maximum alerts on power supply properties will help or allow
the user space to "proactively" create policies like connect/disconnect
charger or stop/start the user apps based on capacity or temperature
parameters.

These parameters can be used to avoid unnecessary polling from user space
and even from kernel space if the underlying HW can support INT triggers
(ex: max17042/47).

This patch adds the following power supply alert type properties:

 CAPACITY_ALERT_MIN
 CAPACITY_ALERT_MAX
 TEMP_ALERT_MIN
 TEMP_ALERT_MAX
 TEMP_AMBIENT_ALERT_MIN
 TEMP_AMBIENT_ALERT_MAX

Signed-off-by: Ramakrishna Pallala &lt;ramakrishna.pallala@intel.com&gt;
Signed-off-by: Anton Vorontsov &lt;anton.vorontsov@linaro.org&gt;
</content>
</entry>
<entry>
<title>power_supply: Add constant charge_current and charge_voltage properties</title>
<updated>2012-06-19T23:46:58+00:00</updated>
<author>
<name>Ramakrishna Pallala</name>
<email>ramakrishna.pallala@intel.com</email>
</author>
<published>2012-05-06T12:46:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=3824c47714f28091f74ca2505146514b4da1f390'/>
<id>urn:sha1:3824c47714f28091f74ca2505146514b4da1f390</id>
<content type='text'>
Constant Charge Current(CC) is charging parameter which limit the
maximum current which can be pumped into the battery during charge cycle.

Constant Charge Voltage(CV) is also charging parameter which limit the
maximum voltage that battery can reach during charge cycle.

It is very common practice that at low or high temperatures we
do not charge the batteries upto it's fullest charge voltage
to avoid battery and user safety issues.

These sysfs properties will be useful for debug and to implement
certain user space policies like "Charging limited due to OverTemp".

Signed-off-by: Ramakrishna Pallala &lt;ramakrishna.pallala@intel.com&gt;
Signed-off-by: Anton Vorontsov &lt;cbouatmailru@gmail.com&gt;
</content>
</entry>
<entry>
<title>power_supply: Register battery as a thermal zone</title>
<updated>2012-06-18T04:25:39+00:00</updated>
<author>
<name>Jenny TC</name>
<email>jenny.tc@intel.com</email>
</author>
<published>2012-05-09T15:06:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=3be330bf8860dc6079da5acc81295787a04cf4c9'/>
<id>urn:sha1:3be330bf8860dc6079da5acc81295787a04cf4c9</id>
<content type='text'>
Battery and charger contribute to Thermals in most of the embedded
devices. So, it makes sense to identify them as Thermal zones in a
particular platform.

This patch registers a thermal zone if the power supply is reporting
a temperature property. The thermal zone will be used by platform's
thermal management solution.

Signed-off-by: Jenny TC &lt;jenny.tc@intel.com&gt;
Signed-off-by: Anton Vorontsov &lt;cbouatmailru@gmail.com&gt;
</content>
</entry>
<entry>
<title>power_supply: Make the core a boolean instead of a tristate</title>
<updated>2012-05-05T04:15:52+00:00</updated>
<author>
<name>Anton Vorontsov</name>
<email>cbouatmailru@gmail.com</email>
</author>
<published>2012-05-05T04:06:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=0d4ed4e27a4cb180af395fa3d7aa98d79f3d3015'/>
<id>urn:sha1:0d4ed4e27a4cb180af395fa3d7aa98d79f3d3015</id>
<content type='text'>
On Mon, Apr 02, 2012 at 01:53:23PM +1000, Benjamin Herrenschmidt wrote:
&gt; &gt; drivers/built-in.o: In function `.nouveau_pm_trigger':
&gt; &gt; (.text+0xa56e8): undefined reference to `.power_supply_is_system_supplied'
&gt; &gt;
&gt; &gt; nouveau probably needs to depends on CONFIG_POWER_SUPPLY to force a module
&gt; &gt; build with the latter is =m
&gt;
&gt; Ok, not that trivial...
&gt;
&gt; The problem is more like POWER_SUPPLY should be a bool, not a tristate.
&gt;
&gt; If you think about it: you don't want things like nouveau to depend on a
&gt; random subsystem like that, people will never get it. In fact,
&gt; POWER_SUPPLY provides empty inline stubs when not enabled, so that's
&gt; really designed to not have depends...
&gt;
&gt; However that -cannot- work if POWER_SUPPLY is modular and the drivers
&gt; who use it are not.
&gt;
&gt; The only fixes here that make sense I can think of
&gt; that don't also involve Kconfig horrors are:
&gt;
&gt;  - Ugly: in power_supply.h, use the extern variant if
&gt;
&gt;       defined(CONFIG_POWER_SUPPLY) ||
&gt;        (defined(CONFIG_POWER_SUPPLY_MODULE) &amp;&amp; defined(MODULE))
&gt;
&gt; IE. use the stub if power supply is a module and what is being built is
&gt; built-in. Of course that's not only ugly, it somewhat sucks from a user
&gt; perspective as the subsystem now exists but can't be used by some
&gt; drivers...
&gt;
&gt;  - Better: Just make the bloody thing a bool :-) The power supply
&gt; framework itself is small enough, just make it a boolean option and
&gt; avoid the problem entirely. The actual power supply sub drivers can
&gt; remain modular of course.

Suggested-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Signed-off-by: Anton Vorontsov &lt;cbouatmailru@gmail.com&gt;
</content>
</entry>
<entry>
<title>power_supply: Add voltage_ocv property and use it for max17042 driver</title>
<updated>2012-05-05T03:44:29+00:00</updated>
<author>
<name>Ramakrishna Pallala</name>
<email>ramakrishna.pallala@intel.com</email>
</author>
<published>2012-04-10T10:51:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=a2ebfe2fc6e088a70d06cd15a5bc9bcb621cc195'/>
<id>urn:sha1:a2ebfe2fc6e088a70d06cd15a5bc9bcb621cc195</id>
<content type='text'>
This adds a new sysfs file called 'voltage_ocv' which gives the
Open Circuit Voltage of the battery.

This property can be used for platform shutdown policies and
can be useful for initial capacity estimations.

Note: This patch is generated against linux-next branch.

Signed-off-by: Ramakrishna Pallala &lt;ramakrishna.pallala@intel.com&gt;
Signed-off-by: Anton Vorontsov &lt;anton.vorontsov@linaro.org&gt;
</content>
</entry>
<entry>
<title>device.h: audit and cleanup users in main include dir</title>
<updated>2012-03-16T14:38:24+00:00</updated>
<author>
<name>Paul Gortmaker</name>
<email>paul.gortmaker@windriver.com</email>
</author>
<published>2012-01-30T16:46:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=313162d0b83836e2f57e51b9b8650fb4b9c396ea'/>
<id>urn:sha1:313162d0b83836e2f57e51b9b8650fb4b9c396ea</id>
<content type='text'>
The &lt;linux/device.h&gt; header includes a lot of stuff, and
it in turn gets a lot of use just for the basic "struct device"
which appears so often.

Clean up the users as follows:

1) For those headers only needing "struct device" as a pointer
in fcn args, replace the include with exactly that.

2) For headers not really using anything from device.h, simply
delete the include altogether.

3) For headers relying on getting device.h implicitly before
being included themselves, now explicitly include device.h

4) For files in which doing #1 or #2 uncovers an implicit
dependency on some other header, fix by explicitly adding
the required header(s).

Any C files that were implicitly relying on device.h to be
present have already been dealt with in advance.

Total removals from #1 and #2: 51.  Total additions coming
from #3: 9.  Total other implicit dependencies from #4: 7.

As of 3.3-rc1, there were 110, so a net removal of 42 gives
about a 38% reduction in device.h presence in include/*

Signed-off-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'power-supply-scope' of git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen</title>
<updated>2012-01-04T05:09:35+00:00</updated>
<author>
<name>Anton Vorontsov</name>
<email>cbouatmailru@gmail.com</email>
</author>
<published>2012-01-04T05:09:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=251f39fe42dae863bd24e30864e6b66076ba076d'/>
<id>urn:sha1:251f39fe42dae863bd24e30864e6b66076ba076d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>power_supply: Add "unknown" in power supply type</title>
<updated>2012-01-04T05:05:51+00:00</updated>
<author>
<name>Kim, Milo</name>
<email>Milo.Kim@ti.com</email>
</author>
<published>2011-12-01T07:08:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=9b8872273af6983b246252a6508fa7cf34c69d6e'/>
<id>urn:sha1:9b8872273af6983b246252a6508fa7cf34c69d6e</id>
<content type='text'>
For the default value of power supply type, "unknown" is added.
With default prop value, supply type property can be displayed
as default - "Unknown".

Signed-off-by: Milo(Woogyom) Kim &lt;milo.kim@ti.com&gt;
Signed-off-by: Anton Vorontsov &lt;cbouatmailru@gmail.com&gt;
</content>
</entry>
<entry>
<title>power_supply: allow a power supply to explicitly point to powered device</title>
<updated>2011-12-09T17:52:07+00:00</updated>
<author>
<name>Jeremy Fitzhardinge</name>
<email>jeremy@goop.org</email>
</author>
<published>2011-12-07T17:15:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=8351665195cec6d2b73cce8b66f02d6dde246a8e'/>
<id>urn:sha1:8351665195cec6d2b73cce8b66f02d6dde246a8e</id>
<content type='text'>
If a power supply has a scope of "Device", then allow the power supply
to indicate what device it actually powers. This is represented in the
power supply's sysfs directory as a symlink named "powers", which points to
the sysfs directory of the powered device.

If the device has children, then the sub-devices are also powered by
the same power supply.

Signed-off-by: Jeremy Fitzhardinge &lt;jeremy@goop.org&gt;
Cc: Richard Hughes &lt;richard@hughsie.com&gt;
</content>
</entry>
<entry>
<title>power_supply: add SCOPE attribute to power supplies</title>
<updated>2011-12-09T17:42:05+00:00</updated>
<author>
<name>Jeremy Fitzhardinge</name>
<email>jeremy@goop.org</email>
</author>
<published>2011-12-07T19:24:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=25a0bc2dfc2ea732f40af2dae52426ead66ae76e'/>
<id>urn:sha1:25a0bc2dfc2ea732f40af2dae52426ead66ae76e</id>
<content type='text'>
This adds a "scope" attribute to a power_supply, which indicates how
much of the system it powers.  It appears in sysfs as "scope" or in
the uevent file as POWER_SUPPLY_SCOPE=.  There are presently three
possible values:
	Unknown - unknown power topology
	System - the power supply powers the whole system
	Device - it powers a specific device, or tree of devices

A power supply which doesn't have a "scope" attribute should be assumed to
have "System" scope.

In general, usermode should assume that loss of all System-scoped power
supplies will power off the whole system, but any single one is sufficient
to power the system.

Signed-off-by: Jeremy Fitzhardinge &lt;jeremy@goop.org&gt;
Cc: Richard Hughes &lt;richard@hughsie.com&gt;
</content>
</entry>
</feed>
