- 07 3月, 2013 1 次提交
-
-
由 Lee Jones 提交于
Add support for a power cut feature which allows user to configure when ab8505 and ab8540 based platforms should shut down system due to low battery. Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
- 23 1月, 2013 4 次提交
-
-
由 Rajkumar Kasirajan 提交于
If battery is not identified while fg probe, mah_max_design gets initialized with unknown battery's charge full design. Reinitialize mah_max_design if battery is identified after fg probe. Signed-off-by: NRajkumar Kasirajan <rajkumar.kasirajan@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NVijaya Kumar K-1 <vijay.kilari@stericsson.com> Reviewed-by: NMarcus COOPER <marcus.xm.cooper@stericsson.com> Reviewed-by: NOlivier CLERGEAUD <olivier.clergeaud@stericsson.com> Reviewed-by: NArun MURTHY <arun.murthy@stericsson.com> Reviewed-by: NRabin VINCENT <rabin.vincent@stericsson.com> Tested-by: NRupesh KUMAR <rupesh.kumar@stericsson.com> Tested-by: NJonas ABERG <jonas.aberg@stericsson.com>
-
由 Jonas Aaberg 提交于
Flush all workqueues at suspend time to avoid suspending during work. Signed-off-by: NJonas Aaberg <jonas.aberg@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NMarcus COOPER <marcus.xm.cooper@stericsson.com>
-
由 Martin Bergström 提交于
When the charger is removed we need to go to INIT_RECOVERY state instead of directly to RECOVERY state. Signed-off-by: NMartin Bergstrom <martin.bergstrom@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NMarcus COOPER <marcus.xm.cooper@stericsson.com> Reviewed-by: NJonas ABERG <jonas.aberg@stericsson.com> Tested-by: NJonas ABERG <jonas.aberg@stericsson.com>
-
由 Hakan Berg 提交于
Changed conditions for restarting low battery measurements counter and adjusted the interval between measurements to avoid RF burst induced voltage drops, and to shorten time to decide to shut down. Signed-off-by: NHakan Berg <hakan.berg@stericsson.com> Signed-off-by: NMartin Bergstrom <martin.bergstrom@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NJonas ABERG <jonas.aberg@stericsson.com> Reviewed-by: NMarcus COOPER <marcus.xm.cooper@stericsson.com>
-
- 16 1月, 2013 8 次提交
-
-
由 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>
-
由 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>
-
由 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>
-
由 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 提交于
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>
-
由 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>
-
- 11 12月, 2012 4 次提交
-
-
由 Lee Jones 提交于
Now that we always pass platform specific battery management data through platform_data instead of obtaining it via different means depending the way be boot the system (DT or ATAGs); we need to re-jiggle the way we acquire it in the driver start-up functions. Now it is wrong for it to be missing, but we still allow Device Tree code to fiddle with it once we've confirmed it's there. Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Lee Jones 提交于
Currently the AB8500 battery management subsystem receives platform specific information via two different means depending on how the platform is booted. If DT is not enabled, a reference to a *_bm_data data structure containing each platform specific attribute is passed though platform_data. However, if DT is enabled, then platform_data is empty and the reference is gained though a DT specific probe function. There are two issues here 1) the same reference is being collected each time and 2) the DT way doesn't allow any provisions to select different platform specific attributes, which kind of defeats the object. Cc: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Lee Jones 提交于
The platform specific battery management configuration data structure is currently called 'bat' short for 'battery'; however, it contains information for all components of the battery management group, rather than information pertaining to the battery itself - there are other structures for that. So, in keeping with its structure namesake 'abx500_bm_data', we rename it to 'bm' here. Using similar logic, we're also renaming 'bmdevs_of_probe' to the more device specific 'ab8500_bm_of_probe'. Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Kalle Komierowski 提交于
The CCMuxOffset bit is not kept set. This will force the columb counter of the AB8500 to use the measure offset calibration. This should increase the accuracy of the fuel gauge. Signed-off-by: NKalle Komierowski <karl.komierowski@stericsson.com> Signed-off-by: NMarcus Cooper <marcus.xm.cooper@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NJonas ABERG <jonas.aberg@stericsson.com>
-
- 29 11月, 2012 3 次提交
-
-
由 Bill Pemberton 提交于
CONFIG_HOTPLUG is going away as an option so __devexit is no longer needed. Signed-off-by: NBill Pemberton <wfp5p@virginia.edu> Cc: Anton Vorontsov <cbou@mail.ru> Cc: David Woodhouse <dwmw2@infradead.org> Acked-by: NMark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-
由 Bill Pemberton 提交于
CONFIG_HOTPLUG is going away as an option so __devinit is no longer needed. Signed-off-by: NBill Pemberton <wfp5p@virginia.edu> Cc: Anton Vorontsov <cbou@mail.ru> Cc: David Woodhouse <dwmw2@infradead.org> Acked-by: NMark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-
由 Bill Pemberton 提交于
CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer needed. Signed-off-by: NBill Pemberton <wfp5p@virginia.edu> Cc: Anton Vorontsov <cbou@mail.ru> Cc: David Woodhouse <dwmw2@infradead.org> Acked-by: NMark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-
- 19 11月, 2012 1 次提交
-
-
由 Rajanikanth H.V 提交于
- This patch adds device tree support for fuelgauge driver - optimize bm devices platform_data usage and of_probe(...) Note: of_probe() routine for battery managed devices is made common across all bm drivers. - test status: - interrupt numbers assigned differs between legacy and FDT mode. Signed-off-by: NRajanikanth H.V <rajanikanth.hv@stericsson.com> Signed-off-by: NAnton Vorontsov <anton.vorontsov@linaro.org>
-
- 23 8月, 2012 1 次提交
-
-
由 Julia Lawall 提交于
Initialize return variable before exiting on an error path. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> ( if@p1 (\(ret < 0\|ret != 0\)) { ... return ret; } | ret@p1 = 0 ) ... when != ret = e1 when != &ret *if(...) { ... when != ret = e2 when forall return ret; } // </smpl> Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: NAnton Vorontsov <anton.vorontsov@linaro.org>
-
- 22 8月, 2012 1 次提交
-
-
由 Tejun Heo 提交于
Initalizers for deferrable delayed_work are confused. * __DEFERRED_WORK_INITIALIZER() * DECLARE_DEFERRED_WORK() * INIT_DELAYED_WORK_DEFERRABLE() Rename them to * __DEFERRABLE_WORK_INITIALIZER() * DECLARE_DEFERRABLE_WORK() * INIT_DEFERRABLE_WORK() This patch doesn't cause any functional changes. Signed-off-by: NTejun Heo <tj@kernel.org>
-
- 05 5月, 2012 2 次提交
-
-
由 Lee Jones 提交于
These patches clean up some ugliness and brings the variable initialisation formatting more into line with other drivers. Signed-off-by: NLee Jones <lee.jones@linaro.org> Signed-off-by: NAnton Vorontsov <anton.vorontsov@linaro.org>
-
由 Linus Walleij 提交于
If no platform data at all is supplied the driver crashes, extend the checks to be more careful so we can compile in the driver and boot also without platform data present. Acked-by: NArun Murthy <arun.murthy@stericsson.com> Signed-off-by: NLinus Walleij <linus.walleij@linaro.org> Signed-off-by: NAnton Vorontsov <anton.vorontsov@linaro.org>
-
- 27 3月, 2012 6 次提交
-
-
由 Anton Vorontsov 提交于
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: NAnton Vorontsov <anton.vorontsov@linaro.org>
-
由 Anton Vorontsov 提交于
The patch fixes the following sparse warning: drivers/power/ab8500_charger.c:1619:6: warning: symbol 'ab8500_charger_detect_usb_type_work' was not declared. Should it be static? drivers/power/abx500_chargalg.c:1709:24: warning: symbol 'abx500_chargalg_sysfs_ops' was not declared. Should it be static? drivers/power/ab8500_fg.c:2328:24: warning: symbol 'ab8500_fg_sysfs_ops' was not declared. Should it be static? Signed-off-by: NAnton Vorontsov <anton.vorontsov@linaro.org>
-
由 Anton Vorontsov 提交于
ab8500_fg_discharge_state_to() function should accept 'enum ab8500_fg_discharge_state' argument, not 'enum ab8500_fg_charge_state'. Signed-off-by: NAnton Vorontsov <anton.vorontsov@linaro.org>
-
由 Anton Vorontsov 提交于
The struct is duplicated, plus causes the following flood: CC drivers/power/ab8500_fg.o ab8500_fg.c: In function ‘ab8500_fg_get_ext_psy_data’: b8500_fg.c:2081:8: warning: assignment from incompatible pointer type [enabled by default] Signed-off-by: NAnton Vorontsov <anton.vorontsov@linaro.org>
-
由 Anton Vorontsov 提交于
The struct is duplicated, plus when used it causes the following warnings: CHECK drivers/power/ab8500_fg.c ab8500_fg.c:818:13: warning: incorrect type in assignment (different base types) ab8500_fg.c:818:13: expected struct v_to_cap *tbl ab8500_fg.c:818:13: got struct abx500_v_to_cap *const v_to_cap_tbl CC drivers/power/ab8500_fg.o ab8500_fg.c: In function 'ab8500_fg_volt_to_capacity': ab8500_fg.c:818:6: warning: assignment from incompatible pointer type [enabled by default] Signed-off-by: NAnton Vorontsov <anton.vorontsov@linaro.org>
-
由 Arun Murthy 提交于
This driver is responsible for provide battery parameters to user space via sysfs by registers to power supply class. It uses fuel gauge and gpadc driver in obtaining the battery parameters. These battery properties are used by abx500 charging algorithm driver to monitor the battery. Signed-off-by: NArun Murthy <arun.murthy@stericsson.com> Acked-by: NLinus Walleij <linus.walleij@linaro.org> Signed-off-by: NAnton Vorontsov <anton.vorontsov@linaro.org>
-