- 23 1月, 2013 17 次提交
-
-
由 Lee Jones 提交于
The AC charger plug-in detection while booting causes I2C read failure if AC charger is not connected. Now the LPN pin is enabled for every PM2301 register access, which solves the issue. Signed-off-by: NRupesh Kumar <rupesh.kumar@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NMarcus COOPER <marcus.xm.cooper@stericsson.com> Reviewed-by: NVijaya Kumar K-1 <vijay.kilari@stericsson.com> Reviewed-by: NRabin VINCENT <rabin.vincent@stericsson.com> Reviewed-by: NJonas ABERG <jonas.aberg@stericsson.com> Tested-by: NJonas ABERG <jonas.aberg@stericsson.com>
-
由 Rajkumar Kasirajan 提交于
Enable support for low battery checking. Signed-off-by: NRajkumar Kasirajan <rajkumar.kasirajan@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NJonas ABERG <jonas.aberg@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>
-
由 Nicolas Guion 提交于
Accessing autopower register fails on the AB8505 and ab9540 as the fallback software control register has moved. Signed-off-by: NMarcus Cooper <marcus.xm.cooper@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NMattias WALLIN <mattias.wallin@stericsson.com> Reviewed-by: NNicolas GUION <nicolas.guion@stericsson.com> Reviewed-by: NJonas ABERG <jonas.aberg@stericsson.com> Tested-by: NJonas ABERG <jonas.aberg@stericsson.com>
-
由 Lee Jones 提交于
Allow a user to check on AB8500 charging status from debugfs. Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Loic Pallardy 提交于
AB and PMxxx doesn't have same watchdog refresh period. Add watchdog to refresh period parameters in x500 charger structure, this should kick watchdog every 30sec. The AC charging should also kick both pm2xxx and the AB charger watchdog. Signed-off-by: NRajkumar Kasirajan <rajkumar.kasirajan@stericsson.com> Signed-off-by: NLoic Pallardy <loic.pallardy@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NMichel JAOUEN <michel.jaouen@stericsson.com> Reviewed-by: NMarcus COOPER <marcus.xm.cooper@stericsson.com> Reviewed-by: NJonas ABERG <jonas.aberg@stericsson.com> Tested-by: NMichel JAOUEN <michel.jaouen@stericsson.com> Tested-by: NJonas ABERG <jonas.aberg@stericsson.com>
-
由 Lee Jones 提交于
Only root should have write permission on sysfs file ab8500_chargalg/chargalg. Cc: stable@vger.kernel.org Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Loic Pallardy 提交于
There is no support to measure the main charger voltage and current using AB9540 gpadc. Therefore this has been removed from the driver. Signed-off-by: NRajkumar Kasirajan <rajkumar.kasirajan@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NMichel JAOUEN <michel.jaouen@stericsson.com> Reviewed-by: NRabin VINCENT <rabin.vincent@stericsson.com> Tested-by: NMichel JAOUEN <michel.jaouen@stericsson.com>
-
由 Olivier Clergeaud 提交于
Fix the way interrupts are handled within the PM2301 charging driver. Signed-off-by: NRajkumar Kasirajan <rajkumar.kasirajan@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NOlivier CLERGEAUD <olivier.clergeaud@stericsson.com> Reviewed-by: NMarcus COOPER <marcus.xm.cooper@stericsson.com> Reviewed-by: NMichel JAOUEN <michel.jaouen@stericsson.com> Tested-by: NMichel JAOUEN <michel.jaouen@stericsson.com>
-
由 Lee Jones 提交于
Also shift the file description to a more suitable location. Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Lee Jones 提交于
When the charging safety timer elapses, the battery health is shown as "Good". This is misleading and also makes it difficult to distinguish issues relating to discharging despite the fact that the charger is still connected. When in actual fact a safety timer elapse is an indication of a fault in the battery. Here we make this clearer by reporting POWER_SUPPLY_HEALTH_UNSPEC_FAILURE instead. Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Lee Jones 提交于
Kicks the watchdog so charging will not stop. Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Michel JAOUEN 提交于
Add AB9540 and AB8505 support to ABx500 BTEMP driver. Signed-off-by: NRajkumar Kasirajan <rajkumar.kasirajan@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NMichel JAOUEN <michel.jaouen@stericsson.com> Reviewed-by: NMarcus COOPER <marcus.xm.cooper@stericsson.com> Reviewed-by: NJonas ABERG <jonas.aberg@stericsson.com> Tested-by: NMichel JAOUEN <michel.jaouen@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>
-
由 Henrik Sölver 提交于
AB8500 refuses to start charging when some types of non standard chargers are connected. This change force the AB to start charging. Signed-off-by: NHenrik Sölver <henrik.solver@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NYvan FILLION <yvan.fillion@stericsson.com> Reviewed-by: NJonas ABERG <jonas.aberg@stericsson.com> Tested-by: NYvan FILLION <yvan.fillion@stericsson.com>
-
由 Michel JAOUEN 提交于
AC charger driver for the DB9540 based platforms. Signed-off-by: NRajkumar Kasirajan <rajkumar.kasirajan@stericsson.com> Signed-off-by: NLoic Pallardy <loic.pallardy@stericsson.com> Signed-off-by: NLee Jones <lee.jones@linaro.org> Reviewed-by: NMichel JAOUEN <michel.jaouen@stericsson.com> Tested-by: NMichel JAOUEN <michel.jaouen@stericsson.com>
-
- 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 5 次提交
-
-
由 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>
-