<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/power, branch v3.4.55</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/drivers/power?h=v3.4.55</id>
<link rel='self' href='https://git.amat.us/linux/atom/drivers/power?h=v3.4.55'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2013-07-13T18:03:40Z</updated>
<entry>
<title>charger-manager: Ensure event is not used as format string</title>
<updated>2013-07-13T18:03:40Z</updated>
<author>
<name>Kees Cook</name>
<email>keescook@chromium.org</email>
</author>
<published>2013-06-06T20:52:21Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=46796ed300f4f9ffa297ff548f0e2f08b7614f3b'/>
<id>urn:sha1:46796ed300f4f9ffa297ff548f0e2f08b7614f3b</id>
<content type='text'>
commit 3594f4c0d7bc51e3a7e6d73c44e368ae079e42f3 upstream.

The exposed interface for cm_notify_event() could result in the event msg
string being parsed as a format string. Make sure it is only used as a
literal string.

Signed-off-by: Kees Cook &lt;keescook@chromium.org&gt;
Cc: Anton Vorontsov &lt;cbou@mail.ru&gt;
Cc: David Woodhouse &lt;dwmw2@infradead.org&gt;
Signed-off-by: Anton Vorontsov &lt;anton@enomsg.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>ab8500_btemp: Demote initcall sequence</title>
<updated>2013-03-03T22:06:44Z</updated>
<author>
<name>Rajanikanth H.V</name>
<email>rajanikanth.hv@stericsson.com</email>
</author>
<published>2013-01-23T04:26:45Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=7eb0fad53ef76201d81a2e9e1bad5b68a457e4e3'/>
<id>urn:sha1:7eb0fad53ef76201d81a2e9e1bad5b68a457e4e3</id>
<content type='text'>
commit eeb0751c99522a4d1bbcc7b6bc1460cd07d07488 upstream.

Power supply subsystem creates thermal zone device for the property
'POWER_SUPPLY_PROP_TEMP' which requires thermal subsystem to be ready
before 'ab8500 battery temperature monitor' driver is initialized. ab8500
btemp driver is initialized with subsys_initcall whereas thermal subsystem
is initialized with fs_initcall which causes
thermal_zone_device_register(...) to crash since the required structure
'thermal_class' is not initialized yet:

Unable to handle kernel NULL pointer dereference at virtual address 000000a4
pgd = c0004000
[000000a4] *pgd=00000000
Internal error: Oops: 5 [#1] PREEMPT SMP ARM
Modules linked in:
CPU: 0    Tainted: G        W     (3.8.0-rc4-00001-g632fda8-dirty #1)
PC is at _raw_spin_lock+0x18/0x54
LR is at get_device_parent+0x50/0x1b8
pc : [&lt;c02f1dd0&gt;]    lr : [&lt;c01cb248&gt;]    psr: 60000013
sp : ef04bdc8  ip : 00000000  fp : c0446180
r10: ef216e38  r9 : c03af5d0  r8 : ef275c18
r7 : 00000000  r6 : c0476c14  r5 : ef275c18  r4 : ef095840
r3 : ef04a000  r2 : 00000001  r1 : 00000000  r0 : 000000a4
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: 10c5787d  Table: 0000404a  DAC: 00000015
Process swapper/0 (pid: 1, stack limit = 0xef04a238)
Stack: (0xef04bdc8 to 0xef04c000)
[...]
[&lt;c02f1dd0&gt;] (_raw_spin_lock+0x18/0x54) from [&lt;c01cb248&gt;] (get_device_parent+0x50/0x1b8)
[&lt;c01cb248&gt;] (get_device_parent+0x50/0x1b8) from [&lt;c01cb8d8&gt;] (device_add+0xa4/0x574)
[&lt;c01cb8d8&gt;] (device_add+0xa4/0x574) from [&lt;c020b91c&gt;] (thermal_zone_device_register+0x118/0x938)
[&lt;c020b91c&gt;] (thermal_zone_device_register+0x118/0x938) from [&lt;c0202030&gt;] (power_supply_register+0x170/0x1f8)
[&lt;c0202030&gt;] (power_supply_register+0x170/0x1f8) from [&lt;c02055ec&gt;] (ab8500_btemp_probe+0x208/0x47c)
[&lt;c02055ec&gt;] (ab8500_btemp_probe+0x208/0x47c) from [&lt;c01cf0dc&gt;] (platform_drv_probe+0x14/0x18)
[&lt;c01cf0dc&gt;] (platform_drv_probe+0x14/0x18) from [&lt;c01cde70&gt;] (driver_probe_device+0x74/0x20c)
[&lt;c01cde70&gt;] (driver_probe_device+0x74/0x20c) from [&lt;c01ce094&gt;] (__driver_attach+0x8c/0x90)
[&lt;c01ce094&gt;] (__driver_attach+0x8c/0x90) from [&lt;c01cc640&gt;] (bus_for_each_dev+0x4c/0x80)
[&lt;c01cc640&gt;] (bus_for_each_dev+0x4c/0x80) from [&lt;c01cd6b4&gt;] (bus_add_driver+0x16c/0x23c)
[&lt;c01cd6b4&gt;] (bus_add_driver+0x16c/0x23c) from [&lt;c01ce54c&gt;] (driver_register+0x78/0x14c)
[&lt;c01ce54c&gt;] (driver_register+0x78/0x14c) from [&lt;c00086ac&gt;] (do_one_initcall+0xfc/0x164)
[&lt;c00086ac&gt;] (do_one_initcall+0xfc/0x164) from [&lt;c02e89c8&gt;] (kernel_init+0x120/0x2b8)
[&lt;c02e89c8&gt;] (kernel_init+0x120/0x2b8) from [&lt;c000e358&gt;] (ret_from_fork+0x14/0x3c)
Code: e3c3303f e5932004 e2822001 e5832004 (e1903f9f)
---[ end trace ed9df72941b5bada ]---

Signed-off-by: Rajanikanth H.V &lt;rajanikanth.hv@stericsson.com&gt;
Signed-off-by: Anton Vorontsov &lt;anton@enomsg.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>ab8500-chargalg: Only root should have write permission on sysfs file</title>
<updated>2013-03-03T22:06:44Z</updated>
<author>
<name>Lee Jones</name>
<email>lee.jones@linaro.org</email>
</author>
<published>2013-01-17T14:21:53Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=f9a8884a35a74f1fb9f12a17f62331bdc6eac2af'/>
<id>urn:sha1:f9a8884a35a74f1fb9f12a17f62331bdc6eac2af</id>
<content type='text'>
commit e3455002d04276c256a531f7175dce0f7d1cb78a upstream.

Only root should have write permission on sysfs file ab8500_chargalg/chargalg.

Signed-off-by: Lee Jones &lt;lee.jones@linaro.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>Merge tag 'for-v3.4-rc1' of git://git.infradead.org/battery-2.6</title>
<updated>2012-03-30T23:09:02Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2012-03-30T23:09:02Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=919c840167ec93167e00ca817aa4627170419ebf'/>
<id>urn:sha1:919c840167ec93167e00ca817aa4627170419ebf</id>
<content type='text'>
Pull battery updates from Anton Vorontsov:
 "Various small bugfixes and enhancements, plus two new drivers:
   - A quite complex ab8500 charger driver, submitted by Arun Murthy @
     ST-Ericsson;
   - Summit Microelectronics SMB347 Battery Charger, submitted by Bruce
     E Robertson and Alan Cox @ Intel.

  And that's all."

* tag 'for-v3.4-rc1' of git://git.infradead.org/battery-2.6: (36 commits)
  max17042_battery: Clean up interrupt handling
  Revert "max8998_charger: Include linux/module.h just once"
  ab8500_fg: Fix some build warnings on x86_64
  max17042_battery: Fix CHARGE_FULL representation.
  max8998_charger: Include linux/module.h just once
  power_supply: Convert i2c drivers to module_i2c_driver
  lp8727_charger: Add MODULE_DEVICE_TABLE
  charger-manager: Simplify charger_get_property(), get rid of a warning
  charger-manager: Clean up for better readability
  da9052-battery: Convert to use module_platform_driver
  da9052-battery: Fix a memory leak when unload the module
  da9052-battery: Add missing platform_set_drvdata
  ab8500: Turn unneeded global symbols into local ones
  ab8500_fg: Fix copy-paste error
  ab8500_fg: Get rid of 'struct battery_type'
  ab8500_fg: Get rid of 'struct v_to_cap'
  ab8500_btemp: Get rid of 'enum adc_therm'
  ab8500_charger: Convert to the new USB OTG calls
  ab8500-btemp: AB8500 battery temperature driver
  ab8500-fg: A8500 fuel gauge driver
  ...
</content>
</entry>
<entry>
<title>max17042_battery: Clean up interrupt handling</title>
<updated>2012-03-26T16:41:29Z</updated>
<author>
<name>Ramakrishna Pallala</name>
<email>ramakrishna.pallala@intel.com</email>
</author>
<published>2012-03-20T21:33:16Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=5cdd4d7fa5424f2018193a0c2af3bef9036c973e'/>
<id>urn:sha1:5cdd4d7fa5424f2018193a0c2af3bef9036c973e</id>
<content type='text'>
Max17042 driver has dummy hardIRQ function which
does nothing but waking the threaded handler.

This patch removes the hardIRQ function and also
modifies the interrupt type to falling edge. While
we are there, change the macros to comply with the
Data sheet.

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>Revert "max8998_charger: Include linux/module.h just once"</title>
<updated>2012-03-26T16:41:27Z</updated>
<author>
<name>Anton Vorontsov</name>
<email>anton.vorontsov@linaro.org</email>
</author>
<published>2012-03-26T16:26:49Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=d6f0b00c0a5f21a54b7f44838f3c3bf73d37b920'/>
<id>urn:sha1:d6f0b00c0a5f21a54b7f44838f3c3bf73d37b920</id>
<content type='text'>
This reverts commit 0c7b5558ecc0a508bb7199776afbf18279595539.

linux-next has the following patch:

- - - -
commit 13ae246db4a02971ef4f557af1f6d3e21d64b710
Author: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
Date:   Sun Jan 29 15:44:45 2012 -0500

    includecheck: delete any duplicate instances of module.h
- - - -

It removes the other instance of include/module.h in this
driver, and so both gets removed. This makes max8998 driver
non-buildable.

Signed-off-by: Anton Vorontsov &lt;anton.vorontsov@linaro.org&gt;
</content>
</entry>
<entry>
<title>ab8500_fg: Fix some build warnings on x86_64</title>
<updated>2012-03-26T16:41:26Z</updated>
<author>
<name>Anton Vorontsov</name>
<email>anton.vorontsov@linaro.org</email>
</author>
<published>2012-03-26T16:18:33Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=5ae2b822e4dc2219e9544fec3be53de699ea0f56'/>
<id>urn:sha1:5ae2b822e4dc2219e9544fec3be53de699ea0f56</id>
<content type='text'>
Noticed the following warnings:

  CC      drivers/power/ab8500_fg.o
drivers/power/ab8500_fg.c: In function 'charge_full_store':
drivers/power/ab8500_fg.c:2258:2: warning: format '%d' expects argument of type 'int', but argument 4 has type 'ssize_t' [-Wformat]
drivers/power/ab8500_fg.c: In function ‘charge_now_store’:
drivers/power/ab8500_fg.c:2280:2: warning: format '%d' expects argument of type 'int', but argument 4 has type 'ssize_t' [-Wformat]

This patch fixes the issues.

Signed-off-by: Anton Vorontsov &lt;anton.vorontsov@linaro.org&gt;
</content>
</entry>
<entry>
<title>max17042_battery: Fix CHARGE_FULL representation.</title>
<updated>2012-03-26T16:41:25Z</updated>
<author>
<name>MyungJoo Ham</name>
<email>myungjoo.ham@samsung.com</email>
</author>
<published>2012-03-14T02:00:01Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=6e0e60cd0d688d0d1af85ef2abb8e363595af988'/>
<id>urn:sha1:6e0e60cd0d688d0d1af85ef2abb8e363595af988</id>
<content type='text'>
CHARGE_FULL should represent the full capacity of the battery in uAh.
The 0x10 (FullCAP) register shows the compensated full capacity in
mAh * 2; e.g., reg(0x10) = 0xBB8 means that it is 1500mAh.

Signed-off-by: MyungJoo Ham &lt;myungjoo.ham@samsung.com&gt;
Signed-off-by: Anton Vorontsov &lt;anton.vorontsov@linaro.org&gt;
</content>
</entry>
<entry>
<title>max8998_charger: Include linux/module.h just once</title>
<updated>2012-03-26T16:41:24Z</updated>
<author>
<name>Jesper Juhl</name>
<email>jj@chaosbits.net</email>
</author>
<published>2012-02-05T00:32:02Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=3124c4a080f9263abb667a827d30c9e81c9e5a21'/>
<id>urn:sha1:3124c4a080f9263abb667a827d30c9e81c9e5a21</id>
<content type='text'>
Remove the duplicate.

Signed-off-by: Jesper Juhl &lt;jj@chaosbits.net&gt;
Acked-by: MyungJoo Ham &lt;myungjoo.ham@samsung.com&gt;
Signed-off-by: Anton Vorontsov &lt;anton.vorontsov@linaro.org&gt;
</content>
</entry>
<entry>
<title>power_supply: Convert i2c drivers to module_i2c_driver</title>
<updated>2012-03-26T16:41:22Z</updated>
<author>
<name>Axel Lin</name>
<email>axel.lin@gmail.com</email>
</author>
<published>2012-01-21T06:42:54Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=5ff92e7ab3591299089cfba440acb4d2ba8ab92f'/>
<id>urn:sha1:5ff92e7ab3591299089cfba440acb4d2ba8ab92f</id>
<content type='text'>
Factor out some boilerplate code for i2c driver registration
into module_i2c_driver.

Signed-off-by: Axel Lin &lt;axel.lin@gmail.com&gt;
Cc: Woogyom Kim &lt;milo.kim@ti.com&gt;
Cc: Daniel Jeong &lt;daniel.jeong@ti.com&gt;
Cc: Minkyu Kang &lt;mk7.kang@samsung.com&gt;
Cc: Peter Edwards &lt;sweetlilmre@gmail.com&gt;
Acked-by: Milo(Woogyom) Kim &lt;milo.kim@ti.com&gt;
Acked-by: Rhyland Klein &lt;rklein@nvidia.com&gt;
Acked-by: Ryan Mallon &lt;rmallon@gmail.com&gt;
Signed-off-by: Anton Vorontsov &lt;anton.vorontsov@linaro.org&gt;
</content>
</entry>
</feed>
