<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/drivers/power/Kconfig, branch v3.5.2</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>max17042_battery: Add support for max17047/50 chip</title>
<updated>2012-05-06T03:28:11+00:00</updated>
<author>
<name>Ramakrishna Pallala</name>
<email>ramakrishna.pallala@intel.com</email>
</author>
<published>2012-05-05T09:04:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=9a8422d205ea142a27c2573e5ca3d2cc87d75260'/>
<id>9a8422d205ea142a27c2573e5ca3d2cc87d75260</id>
<content type='text'>
max17047 is improved version of max17042 chip. It has few HW bug
fixes with minor changes in register set.

max17050 is same as max17047 chip except its silicon packging. So from
driver's point of view there is no difference btw max1047 and max1050.

This patch adds the support to dynamically detect the chip type and
adds steps to initialize the max17047 chip.

Signed-off-by: Ramakrishna Pallala &lt;ramakrishna.pallala@intel.com&gt;
Signed-off-by: Anton Vorontsov &lt;anton.vorontsov@linaro.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
max17047 is improved version of max17042 chip. It has few HW bug
fixes with minor changes in register set.

max17050 is same as max17047 chip except its silicon packging. So from
driver's point of view there is no difference btw max1047 and max1050.

This patch adds the support to dynamically detect the chip type and
adds steps to initialize the max17047 chip.

Signed-off-by: Ramakrishna Pallala &lt;ramakrishna.pallala@intel.com&gt;
Signed-off-by: Anton Vorontsov &lt;anton.vorontsov@linaro.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>power_supply: Fix a typo in BATTERY_DS2781 Kconfig entry</title>
<updated>2012-05-06T02:58:30+00:00</updated>
<author>
<name>Axel Lin</name>
<email>axel.lin@gmail.com</email>
</author>
<published>2012-03-17T07:33:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=840b91bda91ebaa6230caec0ccf005daf9305fb6'/>
<id>840b91bda91ebaa6230caec0ccf005daf9305fb6</id>
<content type='text'>
Signed-off-by: Axel Lin &lt;axel.lin@gmail.com&gt;
Acked-by: Evgeniy Polyakov &lt;zbr@ioremap.net&gt;
Signed-off-by: Anton Vorontsov &lt;anton.vorontsov@linaro.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Axel Lin &lt;axel.lin@gmail.com&gt;
Acked-by: Evgeniy Polyakov &lt;zbr@ioremap.net&gt;
Signed-off-by: Anton Vorontsov &lt;anton.vorontsov@linaro.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>smb347-charger: Convert to regmap API</title>
<updated>2012-05-05T12:48:17+00:00</updated>
<author>
<name>Mika Westerberg</name>
<email>mika.westerberg@linux.intel.com</email>
</author>
<published>2012-04-16T08:48:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=34298d40e5853bc195c9db012fc1ddccac9b6f7f'/>
<id>34298d40e5853bc195c9db012fc1ddccac9b6f7f</id>
<content type='text'>
The smb347-charger driver does a lot of read-modify-write to the device
registers. Instead of open-coding everything we can take advantage of
regmap API which provides nice functions to do this kind of things.

In addition there is no need for custom debugfs file for dumping
registers as this is already provided by the regmap API.

Signed-off-by: Mika Westerberg &lt;mika.westerberg@linux.intel.com&gt;
Signed-off-by: Anton Vorontsov &lt;anton.vorontsov@linaro.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The smb347-charger driver does a lot of read-modify-write to the device
registers. Instead of open-coding everything we can take advantage of
regmap API which provides nice functions to do this kind of things.

In addition there is no need for custom debugfs file for dumping
registers as this is already provided by the regmap API.

Signed-off-by: Mika Westerberg &lt;mika.westerberg@linux.intel.com&gt;
Signed-off-by: Anton Vorontsov &lt;anton.vorontsov@linaro.org&gt;
</pre>
</div>
</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.toradex.cn/cgit/linux-toradex.git/commit/?id=0d4ed4e27a4cb180af395fa3d7aa98d79f3d3015'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge tag 'for-v3.4-rc1' of git://git.infradead.org/battery-2.6</title>
<updated>2012-03-30T23:09:02+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2012-03-30T23:09:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=919c840167ec93167e00ca817aa4627170419ebf'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
  ...
</pre>
</div>
</content>
</entry>
<entry>
<title>ab8500-btemp: AB8500 battery temperature driver</title>
<updated>2012-03-26T16:41:06+00:00</updated>
<author>
<name>Arun Murthy</name>
<email>arun.murthy@stericsson.com</email>
</author>
<published>2012-02-29T16:24:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=1f855824757efab36e08f8fc640f4d9fd1d3d1ab'/>
<id>1f855824757efab36e08f8fc640f4d9fd1d3d1ab</id>
<content type='text'>
This driver is responsible for battery detection, obtaining battery
temperature and monitor the battery temperature by taking precautionary
measurements when battery temperature goes beyond or below the thresholds.

Signed-off-by: Arun Murthy &lt;arun.murthy@stericsson.com&gt;
Acked-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Signed-off-by: Anton Vorontsov &lt;anton.vorontsov@linaro.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This driver is responsible for battery detection, obtaining battery
temperature and monitor the battery temperature by taking precautionary
measurements when battery temperature goes beyond or below the thresholds.

Signed-off-by: Arun Murthy &lt;arun.murthy@stericsson.com&gt;
Acked-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Signed-off-by: Anton Vorontsov &lt;anton.vorontsov@linaro.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add I2C driver for Summit Microelectronics SMB347 Battery Charger.</title>
<updated>2012-03-26T16:41:01+00:00</updated>
<author>
<name>Bruce E. Robertson</name>
<email>bruce.e.robertson@intel.com</email>
</author>
<published>2012-02-06T15:59:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=ed1a230f96eb4610f1f4296b8c3c067389ddf540'/>
<id>ed1a230f96eb4610f1f4296b8c3c067389ddf540</id>
<content type='text'>
Driver support for the Summit I²C battery charger. This is used in some
Intel devices.

Signed-off-by: Bruce E. Robertson &lt;bruce.e.robertson@intel.com&gt;
Signed-off-by: Alan Cox &lt;alan@linux.intel.com&gt;
Signed-off-by: Anton Vorontsov &lt;anton.vorontsov@linaro.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Driver support for the Summit I²C battery charger. This is used in some
Intel devices.

Signed-off-by: Bruce E. Robertson &lt;bruce.e.robertson@intel.com&gt;
Signed-off-by: Alan Cox &lt;alan@linux.intel.com&gt;
Signed-off-by: Anton Vorontsov &lt;anton.vorontsov@linaro.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lp8727_charger: Add company name and description</title>
<updated>2012-03-26T16:40:52+00:00</updated>
<author>
<name>Kim, Milo</name>
<email>Milo.Kim@ti.com</email>
</author>
<published>2012-01-30T01:28:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=e39b828f5355e41a8fd24f413fb9dfb81d808397'/>
<id>e39b828f5355e41a8fd24f413fb9dfb81d808397</id>
<content type='text'>
Add 'Texas Instruments' because TI acquired National semiconductor at 2011.
And the driver information is added in the header file.

Signed-off-by: Milo(Woogyom) Kim &lt;milo.kim@ti.com&gt;
Signed-off-by: Anton Vorontsov &lt;anton.vorontsov@linaro.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add 'Texas Instruments' because TI acquired National semiconductor at 2011.
And the driver information is added in the header file.

Signed-off-by: Milo(Woogyom) Kim &lt;milo.kim@ti.com&gt;
Signed-off-by: Anton Vorontsov &lt;anton.vorontsov@linaro.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>DS2781 Maxim Stand-Alone Fuel Gauge battery and w1 slave drivers</title>
<updated>2012-03-08T19:15:33+00:00</updated>
<author>
<name>Renata Sayakhova</name>
<email>rsayakhova@gmail.com</email>
</author>
<published>2012-02-29T13:58:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=fef37e9a47b9927ce2817fe1a0fa8cf40f6eefb6'/>
<id>fef37e9a47b9927ce2817fe1a0fa8cf40f6eefb6</id>
<content type='text'>
Signed-off-by: Renata Sayakhova &lt;rsayakhova@gmail.com&gt;
Acked-by: Evgeniy Polyakov &lt;zbr@ioremap.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Renata Sayakhova &lt;rsayakhova@gmail.com&gt;
Acked-by: Evgeniy Polyakov &lt;zbr@ioremap.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>power_supply: Mark da9052 driver as broken</title>
<updated>2012-01-10T01:14:10+00:00</updated>
<author>
<name>Anton Vorontsov</name>
<email>cbouatmailru@gmail.com</email>
</author>
<published>2012-01-10T00:53:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=6cfc2a23540667cff6da6e41d1f1167a9a45aa9a'/>
<id>6cfc2a23540667cff6da6e41d1f1167a9a45aa9a</id>
<content type='text'>
There are some problems with MFD part of this driver, so the
driver fails to build:

drivers/power/da9052-battery.c: In function 'da9052_bat_read_volt':
drivers/power/da9052-battery.c:293:2: error: implicit declaration of function 'da9052_adc_manual_read' [-Werror=implicit-function-declaration]
drivers/power/da9052-battery.c: In function 'da9052_bat_check_presence':
drivers/power/da9052-battery.c:306:2: error: implicit declaration of function 'da9052_adc_read_temp' [-Werror=implicit-function-declaration]
drivers/power/da9052-battery.c: In function 'da9052_determine_vc_tbl_index':
drivers/power/da9052-battery.c:348:1: warning: control reaches end of non-void function [-Wreturn-type]
cc1: some warnings being treated as errors

The fix for MFD part will probably go post -rc1 (or in the next merge
window), so let's disable the driver for now.

Reported-by: Stephen Rothwell &lt;sfr@canb.auug.org.au&gt;
Signed-off-by: Anton Vorontsov &lt;cbouatmailru@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There are some problems with MFD part of this driver, so the
driver fails to build:

drivers/power/da9052-battery.c: In function 'da9052_bat_read_volt':
drivers/power/da9052-battery.c:293:2: error: implicit declaration of function 'da9052_adc_manual_read' [-Werror=implicit-function-declaration]
drivers/power/da9052-battery.c: In function 'da9052_bat_check_presence':
drivers/power/da9052-battery.c:306:2: error: implicit declaration of function 'da9052_adc_read_temp' [-Werror=implicit-function-declaration]
drivers/power/da9052-battery.c: In function 'da9052_determine_vc_tbl_index':
drivers/power/da9052-battery.c:348:1: warning: control reaches end of non-void function [-Wreturn-type]
cc1: some warnings being treated as errors

The fix for MFD part will probably go post -rc1 (or in the next merge
window), so let's disable the driver for now.

Reported-by: Stephen Rothwell &lt;sfr@canb.auug.org.au&gt;
Signed-off-by: Anton Vorontsov &lt;cbouatmailru@gmail.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
