- 03 2月, 2013 1 次提交
-
-
由 Mike Lockwood 提交于
Add the emulated power driver for the Goldfish platform. This folds together the code from the Google tree, Jun Nakajima's cleanups and x86 porting work, and then a tidy up to pass checkpatch. Signed-off-by: NMike A. Chan <mikechan@google.com> [cleanup and x86 support] Signed-off-by: NSheng Yang <sheng@linux.intel.com> Signed-off-by: NYunhong Jiang <yunhong.jiang@intel.com> Signed-off-by: NXiaohui Xin <xiaohui.xin@intel.com> Signed-off-by: NJun Nakajima <jun.nakajima@intel.com> Signed-off-by: NBruce Beare <bruce.j.beare@intel.com> [ported to 3.4] Signed-off-by: NTom Keel <thomas.keel@intel.com> [ported to 3.7 and final tidy] Signed-off-by: NAlan Cox <alan@linux.intel.com> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
- 20 1月, 2013 1 次提交
-
-
由 Andrew Lunn 提交于
GPLv2+ is not a valid license string. Replace it with one that is. Signed-off-by: NAndrew Lunn <andrew@lunn.ch> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
- 16 1月, 2013 17 次提交
-
-
由 Lee Jones 提交于
As HZ is a full-second, there is little point in rounding it. Let's save a few cycles by using HZ directly. Signed-off-by: NLee Jones <lee.jones@linaro.org> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 Paer-Olof Haakansson 提交于
When calculating the average current the nominator will overflow when the charging current is high. Signed-off-by: NLee Jones <lee.jones@linaro.org> Signed-off-by: NHenrik Sölver <henrik.solver@stericsson.com> Reviewed-by: NPar-Olof HAKANSSON <par-olof.hakansson@stericsson.com> Reviewed-by: NJonas ABERG <jonas.aberg@stericsson.com> Tested-by: NPar-Olof HAKANSSON <par-olof.hakansson@stericsson.com> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 Marcus Cooper 提交于
A Legacy USB charger should be handled directly by the charger driver. Signed-off-by: NLee Jones <lee.jones@linaro.org> Signed-off-by: NMarcus Cooper <marcus.xm.cooper@stericsson.com> Reviewed-by: NKarl KOMIEROWSKI <karl.komierowski@stericsson.com> Reviewed-by: NJonas ABERG <jonas.aberg@stericsson.com> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 Marcus Cooper 提交于
Cleanup of the ab8500_charger driver. Signed-off-by: NLee Jones <lee.jones@linaro.org> Signed-off-by: NMarcus Cooper <marcus.xm.cooper@stericsson.com> Reviewed-by: NKarl KOMIEROWSKI <karl.komierowski@stericsson.com> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 Hakan Berg 提交于
Add support for the battery over-voltage situation Signed-off-by: NLee Jones <lee.jones@linaro.org> Signed-off-by: NHakan Berg <hakan.berg@stericsson.com> Reviewed-by: NKarl KOMIEROWSKI <karl.komierowski@stericsson.com> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 Hakan Berg 提交于
BTEMP thermal compensation factor times 10 is applied in two places, probe and get_property. Removed from probe. Signed-off-by: NLee Jones <lee.jones@linaro.org> Signed-off-by: NHakan Berg <hakan.berg@stericsson.com> Reviewed-by: NKarl KOMIEROWSKI <karl.komierowski@stericsson.com> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 pender01 提交于
Round the capacity values for better enduser experience. Signed-off-by: NLee Jones <lee.jones@linaro.org> Signed-off-by: Npender01 <peter.enderborg@stericsson.com> Reviewed-by: NJonas ABERG <jonas.aberg@stericsson.com> Tested-by: NMarcus COOPER <marcus.xm.cooper@stericsson.com> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 Hakan Berg 提交于
The Travel and Carkit adapter should be handled directly by the charger driver. Signed-off-by: NLee Jones <lee.jones@linaro.org> Signed-off-by: NMarcus Cooper <marcus.xm.cooper@stericsson.com> Reviewed-by: NJonas ABERG <jonas.aberg@stericsson.com> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 Hakan Berg 提交于
Ignore the low btemp interrupts for ab8500 3.0 and 3.3 Signed-off-by: NLee Jones <lee.jones@linaro.org> Signed-off-by: NHakan Berg <hakan.berg@stericsson.com> Reviewed-by: NJonas ABERG <jonas.aberg@stericsson.com> Tested-by: NMarcus COOPER <marcus.xm.cooper@stericsson.com> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 Lee Jones 提交于
The Linux Power Supply framework expects battery temperatures to have a resolution of 0.1 degree Celsius; however, the AB8500 btemp driver supplies a battery temperature resolution of 1 degree Celsius. We therefore have to use a factor 10 on the measured values. Signed-off-by: NLee Jones <lee.jones@linaro.org> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 Rickard Andersson 提交于
In case of time out error IRQ needs to be disabled otherwise we will get unbalanced enable/disable pairs. Signed-off-by: NLee Jones <lee.jones@linaro.org> Signed-off-by: NRickard Andersson <rickard.andersson@stericsson.com> Reviewed-by: NJonas ABERG <jonas.aberg@stericsson.com> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 Marcus Cooper 提交于
Today the battery recharge is determined with a voltage threshold. This voltage threshold is only valid when the battery is relaxed. In charging algorithm the voltage read is the loaded battery voltage and no compensation is done to get the relaxed voltage. When maintenance charging is not selected, this makes the recharging condition to almost immediately activate when there is a discharge present on the battery. Depending on which vendor the battery comes from this behavior can wear out the battery much faster than normal. The fuelgauge driver is responsible to monitor the actual battery capacity and is able to estimate the remaining capacity. It is better to use the remaining capacity as a limit to determine when battery should be recharged. Signed-off-by: NLee Jones <lee.jones@linaro.org> Signed-off-by: NMarcus Cooper <marcus.xm.cooper@stericsson.com> Reviewed-by: NHakan BERG <hakan.berg@stericsson.com> Reviewed-by: NJonas ABERG <jonas.aberg@stericsson.com> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 Jonas Aaberg 提交于
Gracefully handle gpadc conversion errors. Signed-off-by: NLee Jones <lee.jones@linaro.org> Signed-off-by: NJonas Aaberg <jonas.aberg@stericsson.com> Reviewed-by: NJohan BJORNSTEDT <johan.bjornstedt@stericsson.com> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 Jonas Aaberg 提交于
Doing so provides a greater degree of accuracy when dealing with time-frames between 1us and 20ms. msleep() is only accurate for wake-ups greater than 20ms. Signed-off-by: NLee Jones <lee.jones@linaro.org> Signed-off-by: NJonas ABERG <jonas.aberg@stericsson.com> Reviewed-by: NJohan BJORNSTEDT <johan.bjornstedt@stericsson.com> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 Lee Jones 提交于
Add two new work queues to provide USB and AC charger disconnect detection. Signed-off-by: NLee Jones <lee.jones@linaro.org> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 Johan Bjornstedt 提交于
When enabling the CCEOC irq we might get false interrupt from ab8500-driver due to the latched value will be saved and interpreted as an IRQ when enabled Signed-off-by: NLee Jones <lee.jones@linaro.org> Signed-off-by: NJohan Bjornstedt <johan.bjornstedt@stericsson.com> Signed-off-by: NHenrik Solver <henrik.solver@stericsson.com> Reviewed-by: NKarl KOMIEROWSKI <karl.komierowski@stericsson.com> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 Paer-Olof Haakansson 提交于
Rename the ab8500_power_loss_handling function to a more descriptive name ab8500_enable_disable_sw_fallback Signed-off-by: NLee Jones <lee.jones@linaro.org> Signed-off-by: NRobert Marklund <robert.marklund@stericsson.com> Reviewed-by: NPar-Olof HAKANSSON <par-olof.hakansson@stericsson.com> Reviewed-by: NKarl KOMIEROWSKI <karl.komierowski@stericsson.com> Tested-by: NPar-Olof HAKANSSON <par-olof.hakansson@stericsson.com> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
- 07 1月, 2013 9 次提交
-
-
由 Nickolai Zeldovich 提交于
Avoid accessing vc_tbl_ref[3], which is one past the end of that array, in da9052_determine_vc_tbl_index(), by adjusting the loop bound. (Hint: there is 'i + 1' inside the loop.) Signed-off-by: NNickolai Zeldovich <nickolai@csail.mit.edu> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 Devendra Naga 提交于
use devm_kzalloc and no need of error path and unload frees. Signed-off-by: NDevendra Naga <devendra.aaru@gmail.com> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 Kim, Milo 提交于
Use 'platform_device' in kernel messages rather than i2c client device node. lp8788_update_charger_params() needs additional argument, 'pdev'. Then, remove unnecessary lp8788 private data in lp8788_irq_register(). Signed-off-by: NMilo(Woogyom) Kim <milo.kim@ti.com> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 Kim, Milo 提交于
The lp8788-charger is a platform driver of lp8788-mfd. The platform device is allocated when mfd_add_devices() is called in lp8788-mfd. On the other hand, 'lp->dev' is the i2c client device. Therefore, this 'platform_device' is a proper parent device in case of resource managed mem alloc and device kernel message. Signed-off-by: NMilo(Woogyom) Kim <milo.kim@ti.com> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 Andrew Lunn 提交于
Some devices, Buffalo Linkstation LS-XHL and LS-CHLv2 for example, power-off by restarting to letting u-boot hold the SoC until the user presses a key. Add a generic driver to implement this. It binds a function to pm_power_off, which calls arm_pm_restart. Signed-off-by: NAndrew Lunn <andrew@lunn.ch> Tested-by: NMichael Walle <michael@walle.cc> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 Andrew Lunn 提交于
The QNAP NAS boxes have a microcontroller attached to the SoCs second serial port. By sending it a simple command, it will turn the power for the board off. This driver registers a function for pm_power_off to send such a command. Signed-off-by: NAndrew Lunn <andrew@lunn.ch> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 Kim, Milo 提交于
Cc: Anton Vorontsov <cbou@mail.ru> Cc: Bryan Wu <cooloney@gmail.com> Cc: Jonathan Cameron <jic23@cam.ac.uk> Cc: Mark Brown <broonie@opensource.wolfsonmicro.com> Cc: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: NMilo(Woogyom) Kim <milo.kim@ti.com> Acked-by: NBryan Wu <cooloney@gmail.com> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 Kim, Milo 提交于
Cc: Anton Vorontsov <cbou@mail.ru> Cc: David Woodhouse <dwmw2@infradead.org> Signed-off-by: NMilo(Woogyom) Kim <milo.kim@ti.com> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 Julia Lawall 提交于
devm_kzalloc should not be followed by kfree, as this results in a double free. The problem was found using the following semantic match (http://coccinelle.lip6.fr/): // <smpl> @@ expression x,e; @@ x = devm_kzalloc(...) ... when != x = e ?-kfree(x,...); // </smpl> Furthermore, in the remove function, the calls to free_irq are moved up to prevent a possible reference in the interrupt handler to resources freed by power_supply_unregister. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
- 06 1月, 2013 12 次提交
-
-
由 Sachin Kamat 提交于
devm_regulator_get() is device managed and makes error handling and code cleanup simpler. Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org> Acked-by: NArun Murthy <arun.murthy@stericsson.com> Acked-by: NLinus Walleij <linus.walleij@linaro.org> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 NeilBrown 提交于
commit a66f59ba bq27x00_battery: Add support for BQ27425 chip introduced 2 bugs. 1/ 'chip' was set to BQ27425 unconditionally - breaking support for other devices; 2/ BQ27425 does not support cycle count, how the code still tries to get the cycle count for BQ27425, and now does it twice for other chips. Signed-off-by: NNeilBrown <neilb@suse.de> Cc: Saranya Gopal <saranya.gopal@intel.com> Cc: stable@vger.kernel.org Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 Ramakrishna Pallala 提交于
As most of the charger chips come with two kinds of safety features related to timing: 1. Watchdog Timer (interms of seconds/mins) 2. Safety Timer (interms of hours) This patch adds these to fault causes in POWER_SUPPLY_PROP_HEALTH_* enums so that whenever there is either watchdog timeout or safety timer timeout driver could notify the user space accurately about the fault and will also be helpful for debug. Signed-off-by: NRamakrishna Pallala <ramakrishna.pallala@intel.com> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 Sachin Kamat 提交于
devm_kzalloc is device managed and makes error handling and code cleanup a bit simpler. Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 Sachin Kamat 提交于
module_i2c_driver() makes the code simpler by eliminating module_init and module_exit calls. Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 Sachin Kamat 提交于
<linux/version.h> is not required here. Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 Anton Vorontsov 提交于
Conflicts: drivers/power/ab8500_bmdata.c
-
由 Rajanikanth H.V 提交于
ab8500_fg driver prepares instance list of fuelgauge which is required by btemp driver for battery identification. So make sure that ab8500 fuelgauge list is ready before btemp driver starts. Signed-off-by: NRajanikanth H.V <rajanikanth.hv@stericsson.com> Acked-by: NLee Jones <lee.jones@linaro.org> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 Rajanikanth H.V 提交于
DT property 'stericsson,battery-type' shall be one of supported technology type Signed-off-by: NRajanikanth H.V <rajanikanth.hv@stericsson.com> Acked-by: NLee Jones <lee.jones@linaro.org> Signed-off-by: NAnton Vorontsov <anton@enomsg.org>
-
由 Tejun Heo 提交于
There's no need to test whether a (delayed) work item in pending before queueing, flushing or cancelling it. Most uses are unnecessary and quite a few of them are buggy. Remove unnecessary pending tests and rewrite _setup_polling() so that it uses mod_delayed_work() if the next polling interval is sooner than currently scheduled. queue_delayed_work() is used otherwise. Only compile tested. I noticed that two work items - setup_polling and cm_monitor_work - schedule each other. It's a very unusual construct and I'm fairly sure it's racy. You can't break such circular dependency by calling cancel on each. I strongly recommend revising the mechanism. Signed-off-by: NTejun Heo <tj@kernel.org> Cc: Anton Vorontsov <cbou@mail.ru> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Donggeun Kim <dg77.kim@samsung.com> Cc: MyungJoo Ham <myungjoo.ham@samsung.com> Signed-off-by: NAnton Vorontsov <anton.vorontsov@linaro.org>
-
由 Chanwoo Choi 提交于
This patch split _probe function for readability because _probe function is longer than 400 line. Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com> Signed-off-by: NMyungjoo Ham <myungjoo.ham@samsung.com> Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com> Signed-off-by: NAnton Vorontsov <anton.vorontsov@linaro.org>
-