<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/drivers/power, branch v2.6.29</title>
<subtitle>Linux kernel source tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/'/>
<entry>
<title>ds2760_battery.c: fix division by zero</title>
<updated>2009-03-12T23:20:23+00:00</updated>
<author>
<name>Daniel Mack</name>
<email>daniel@caiaq.de</email>
</author>
<published>2009-03-12T21:31:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=a4e3f91b98d86ae0b5c816fe45190bb29ac32f71'/>
<id>a4e3f91b98d86ae0b5c816fe45190bb29ac32f71</id>
<content type='text'>
The 'battery remaining capacity' calculation in
drivers/power/ds2760_battery.c lacks a parameter check to a division
operation which causes the kernel to oops on my board.

[   21.233750] Division by zero in kernel.
[   21.237646] [&lt;c002955c&gt;] (__div0+0x0/0x20) from [&lt;c012561c&gt;] (Ldiv0+0x8/0x10)
[   21.244816] [&lt;c01bef34&gt;] (ds2760_battery_read_status+0x0/0x2a4) from [&lt;c01bf3a4&gt;] (ds2760_battery_get_property+0x30/0xdc)
[   21.255803]  r8:c03a22c0 r7:c7886100 r6:00000009 r5:c782fe7c r4:c7886084
[   21.262518] [&lt;c01bf374&gt;] (ds2760_battery_get_property+0x0/0xdc) from [&lt;c01bde98&gt;] (power_supply_show_property+0x48/0x114)
[   21.273480]  r6:c7996000 r5:00000009 r4:00000000
[   21.278111] [&lt;c01bde50&gt;] (power_supply_show_property+0x0/0x114) from [&lt;c01be158&gt;] (power_supply_uevent+0x188/0x280)
[   21.288537]  r8:00000001 r7:c7886100 r6:c7996000 r5:000000b4 r4:00000000
[   21.295222] [&lt;c01bdfd0&gt;] (power_supply_uevent+0x0/0x280) from [&lt;c015c664&gt;] (dev_uevent+0xd4/0x10c)
[   21.304199] [&lt;c015c590&gt;] (dev_uevent+0x0/0x10c) from [&lt;c0128440&gt;] (kobject_uevent_env+0x180/0x390)
[   21.313170]  r5:00000000 r4:c78860ac
[   21.316725] [&lt;c01282c0&gt;] (kobject_uevent_env+0x0/0x390) from [&lt;c0128664&gt;] (kobject_uevent+0x14/0x18)
[   21.325850] [&lt;c0128650&gt;] (kobject_uevent+0x0/0x18) from [&lt;c01bdc34&gt;] (power_supply_changed_work+0x5c/0x70)
[   21.335506] [&lt;c01bdbd8&gt;] (power_supply_changed_work+0x0/0x70) from [&lt;c004d290&gt;] (run_workqueue+0xbc/0x144)
[   21.345167]  r4:c7812040
[   21.347716] [&lt;c004d1d4&gt;] (run_workqueue+0x0/0x144) from [&lt;c004d94c&gt;] (worker_thread+0xa8/0xbc)
[   21.356296]  r7:c7812040 r6:c7820b00 r5:c782ffa4 r4:c7812048
[   21.361957] [&lt;c004d8a4&gt;] (worker_thread+0x0/0xbc) from [&lt;c0051008&gt;] (kthread+0x5c/0x94)
[   21.369971]  r7:00000000 r6:c004d8a4 r5:c7812040 r4:c782e000
[   21.375612] [&lt;c0050fac&gt;] (kthread+0x0/0x94) from [&lt;c00403d0&gt;] (do_exit+0x0/0x688)

Signed-off-by: Daniel Mack &lt;daniel@caiaq.de&gt;
Cc: Szabolcs Gyurko &lt;szabolcs.gyurko@tlt.hu&gt;
Acked-by: Matt Reimer &lt;mreimer@vpop.net&gt;
Acked-by: Anton Vorontsov &lt;cbou@mail.ru&gt;
Cc: David Woodhouse &lt;dwmw2@infradead.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The 'battery remaining capacity' calculation in
drivers/power/ds2760_battery.c lacks a parameter check to a division
operation which causes the kernel to oops on my board.

[   21.233750] Division by zero in kernel.
[   21.237646] [&lt;c002955c&gt;] (__div0+0x0/0x20) from [&lt;c012561c&gt;] (Ldiv0+0x8/0x10)
[   21.244816] [&lt;c01bef34&gt;] (ds2760_battery_read_status+0x0/0x2a4) from [&lt;c01bf3a4&gt;] (ds2760_battery_get_property+0x30/0xdc)
[   21.255803]  r8:c03a22c0 r7:c7886100 r6:00000009 r5:c782fe7c r4:c7886084
[   21.262518] [&lt;c01bf374&gt;] (ds2760_battery_get_property+0x0/0xdc) from [&lt;c01bde98&gt;] (power_supply_show_property+0x48/0x114)
[   21.273480]  r6:c7996000 r5:00000009 r4:00000000
[   21.278111] [&lt;c01bde50&gt;] (power_supply_show_property+0x0/0x114) from [&lt;c01be158&gt;] (power_supply_uevent+0x188/0x280)
[   21.288537]  r8:00000001 r7:c7886100 r6:c7996000 r5:000000b4 r4:00000000
[   21.295222] [&lt;c01bdfd0&gt;] (power_supply_uevent+0x0/0x280) from [&lt;c015c664&gt;] (dev_uevent+0xd4/0x10c)
[   21.304199] [&lt;c015c590&gt;] (dev_uevent+0x0/0x10c) from [&lt;c0128440&gt;] (kobject_uevent_env+0x180/0x390)
[   21.313170]  r5:00000000 r4:c78860ac
[   21.316725] [&lt;c01282c0&gt;] (kobject_uevent_env+0x0/0x390) from [&lt;c0128664&gt;] (kobject_uevent+0x14/0x18)
[   21.325850] [&lt;c0128650&gt;] (kobject_uevent+0x0/0x18) from [&lt;c01bdc34&gt;] (power_supply_changed_work+0x5c/0x70)
[   21.335506] [&lt;c01bdbd8&gt;] (power_supply_changed_work+0x0/0x70) from [&lt;c004d290&gt;] (run_workqueue+0xbc/0x144)
[   21.345167]  r4:c7812040
[   21.347716] [&lt;c004d1d4&gt;] (run_workqueue+0x0/0x144) from [&lt;c004d94c&gt;] (worker_thread+0xa8/0xbc)
[   21.356296]  r7:c7812040 r6:c7820b00 r5:c782ffa4 r4:c7812048
[   21.361957] [&lt;c004d8a4&gt;] (worker_thread+0x0/0xbc) from [&lt;c0051008&gt;] (kthread+0x5c/0x94)
[   21.369971]  r7:00000000 r6:c004d8a4 r5:c7812040 r4:c782e000
[   21.375612] [&lt;c0050fac&gt;] (kthread+0x0/0x94) from [&lt;c00403d0&gt;] (do_exit+0x0/0x688)

Signed-off-by: Daniel Mack &lt;daniel@caiaq.de&gt;
Cc: Szabolcs Gyurko &lt;szabolcs.gyurko@tlt.hu&gt;
Acked-by: Matt Reimer &lt;mreimer@vpop.net&gt;
Acked-by: Anton Vorontsov &lt;cbou@mail.ru&gt;
Cc: David Woodhouse &lt;dwmw2@infradead.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>pcf50633_charger: Fix typo</title>
<updated>2009-02-02T16:53:02+00:00</updated>
<author>
<name>Balaji Rao</name>
<email>balajirrao@openmoko.org</email>
</author>
<published>2009-01-27T13:52:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=ccc9c8b91c2631da2cab46a6fcd9c3106dcb9abb'/>
<id>ccc9c8b91c2631da2cab46a6fcd9c3106dcb9abb</id>
<content type='text'>
container_of(psy, struct pcf50633_mbc, usb); should be
container_of(psy, struct pcf50633_mbc, adapter);

Signed-off-by: Balaji Rao &lt;balajirrao@openmoko.org&gt;
Cc: Andy Green &lt;andy@openmoko.com&gt;
Signed-off-by: Anton Vorontsov &lt;cbouatmailru@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
container_of(psy, struct pcf50633_mbc, usb); should be
container_of(psy, struct pcf50633_mbc, adapter);

Signed-off-by: Balaji Rao &lt;balajirrao@openmoko.org&gt;
Cc: Andy Green &lt;andy@openmoko.com&gt;
Signed-off-by: Anton Vorontsov &lt;cbouatmailru@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>power_supply: pda_power: Don't request shared IRQs w/ IRQF_DISABLED</title>
<updated>2009-01-25T23:09:26+00:00</updated>
<author>
<name>Philipp Zabel</name>
<email>philipp.zabel@gmail.com</email>
</author>
<published>2009-01-18T13:46:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=74194cc71074c8bc17690a5d826093fb6f6e9928'/>
<id>74194cc71074c8bc17690a5d826093fb6f6e9928</id>
<content type='text'>
IRQF_DISABLED is not guaranteed for shared IRQs. I think power_changed_isr
doesn't need it anyway, as it only fires a timer.
This patch enables IRQF_SAMPLE_RANDOM instead.

Signed-off-by: Philipp Zabel &lt;philipp.zabel@gmail.com&gt;
Signed-off-by: Anton Vorontsov &lt;cbouatmailru@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
IRQF_DISABLED is not guaranteed for shared IRQs. I think power_changed_isr
doesn't need it anyway, as it only fires a timer.
This patch enables IRQF_SAMPLE_RANDOM instead.

Signed-off-by: Philipp Zabel &lt;philipp.zabel@gmail.com&gt;
Signed-off-by: Anton Vorontsov &lt;cbouatmailru@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>power_supply: PCF50633 battery charger driver</title>
<updated>2009-01-11T00:34:24+00:00</updated>
<author>
<name>Balaji Rao</name>
<email>balajirrao@openmoko.org</email>
</author>
<published>2009-01-09T00:50:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=f5714dc97d63cc0dd1219bd0eb2e1f8df1e4347a'/>
<id>f5714dc97d63cc0dd1219bd0eb2e1f8df1e4347a</id>
<content type='text'>
Signed-off-by: Balaji Rao &lt;balajirrao@openmoko.org&gt;
Cc: Andy Green &lt;andy@openmoko.com&gt;
Cc: David Woodhouse &lt;dwmw2@infradead.org&gt;
Acked-by: Anton Vorontsov &lt;cbouatmailru@gmail.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@openedhand.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Balaji Rao &lt;balajirrao@openmoko.org&gt;
Cc: Andy Green &lt;andy@openmoko.com&gt;
Cc: David Woodhouse &lt;dwmw2@infradead.org&gt;
Acked-by: Anton Vorontsov &lt;cbouatmailru@gmail.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@openedhand.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>power-supply: struct device - replace bus_id with dev_name(), dev_set_name()</title>
<updated>2009-01-06T18:44:38+00:00</updated>
<author>
<name>Kay Sievers</name>
<email>kay.sievers@vrfy.org</email>
</author>
<published>2009-01-06T18:44:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=ba88b0029fcdc39d23acd4d0e64b38145ffa4d5f'/>
<id>ba88b0029fcdc39d23acd4d0e64b38145ffa4d5f</id>
<content type='text'>
CC: Anton Vorontsov &lt;cbouatmailru@gmail.com&gt;
Signed-off-by: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
CC: Anton Vorontsov &lt;cbouatmailru@gmail.com&gt;
Signed-off-by: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>power_supply: Add Dialog DA9030 battery charger driver</title>
<updated>2009-01-04T11:17:41+00:00</updated>
<author>
<name>Mike Rapoport</name>
<email>mike@compulab.co.il</email>
</author>
<published>2008-12-30T21:44:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=342d765e011f9cbe4292119a9164f76ccf0b922a'/>
<id>342d765e011f9cbe4292119a9164f76ccf0b922a</id>
<content type='text'>
Driver for battery charger integrated into Dialog Semiconductor DA9030 PMIC

Signed-off-by: Mike Rapoport &lt;mike@compulab.co.il&gt;
Acked-by: Anton Vorontsov &lt;cbouatmailru@gmail.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@openedhand.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Driver for battery charger integrated into Dialog Semiconductor DA9030 PMIC

Signed-off-by: Mike Rapoport &lt;mike@compulab.co.il&gt;
Acked-by: Anton Vorontsov &lt;cbouatmailru@gmail.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@openedhand.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>power_supply: Add battery health reporting for WM8350</title>
<updated>2009-01-04T11:17:39+00:00</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2008-11-30T21:45:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=4008e879e1325c29362aa2c3fa4b527273ae15a8'/>
<id>4008e879e1325c29362aa2c3fa4b527273ae15a8</id>
<content type='text'>
Implement support for reporting battery health in the WM8350 battery
interface. Since we are now able to report this via the classs remove
the diagnostics from the interrupt handler.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Acked-by: Anton Vorontsov &lt;cbouatmailru@gmail.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@openedhand.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Implement support for reporting battery health in the WM8350 battery
interface. Since we are now able to report this via the classs remove
the diagnostics from the interrupt handler.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Acked-by: Anton Vorontsov &lt;cbouatmailru@gmail.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@openedhand.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>power_supply: Add cold to the POWER_SUPPLY_HEALTH report values</title>
<updated>2009-01-04T11:17:39+00:00</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2008-11-30T21:43:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=7e386e6e0e4f34f0545e8923e22fe4dd61ef9d48'/>
<id>7e386e6e0e4f34f0545e8923e22fe4dd61ef9d48</id>
<content type='text'>
Some systems are able to report problems with batteries being under
temperature.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Acked-by: Anton Vorontsov &lt;cbouatmailru@gmail.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@openedhand.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some systems are able to report problems with batteries being under
temperature.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Acked-by: Anton Vorontsov &lt;cbouatmailru@gmail.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@openedhand.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mfd: Switch WM8350 revision detection to a feature based model</title>
<updated>2009-01-04T11:17:38+00:00</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2008-11-24T19:20:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=d756f4a4446227ca9626087939a6769ca55ab036'/>
<id>d756f4a4446227ca9626087939a6769ca55ab036</id>
<content type='text'>
Rather than check for chip revisions in the WM8350 drivers have the core
code set flags for relevant differences.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@openedhand.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rather than check for chip revisions in the WM8350 drivers have the core
code set flags for relevant differences.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@openedhand.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>power_supply: Add support for WM8350 PMU</title>
<updated>2009-01-04T11:17:38+00:00</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2008-11-16T19:16:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=14431aa0c5a443d13d24e6f865a8838f97dab973'/>
<id>14431aa0c5a443d13d24e6f865a8838f97dab973</id>
<content type='text'>
This patch adds support for the PMU provided by the WM8350 which
implements battery, line and USB supplies including a battery charger.
The hardware functions largely autonomously, with minimal software
control required to initiate fast charging.

Support for configuration of the USB supply is not yet implemented.
This means that the hardware will remain in the mode configured at
startup, by default limiting the current drawn from USB to 100mA.

This driver was originally written by Liam Girdwood with subsequent
updates for submission by Mark Brown.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Acked-by: Anton Vorontsov &lt;cbouatmailru@gmail.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@openedhand.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch adds support for the PMU provided by the WM8350 which
implements battery, line and USB supplies including a battery charger.
The hardware functions largely autonomously, with minimal software
control required to initiate fast charging.

Support for configuration of the USB supply is not yet implemented.
This means that the hardware will remain in the mode configured at
startup, by default limiting the current drawn from USB to 100mA.

This driver was originally written by Liam Girdwood with subsequent
updates for submission by Mark Brown.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Acked-by: Anton Vorontsov &lt;cbouatmailru@gmail.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@openedhand.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
