c8024234c20eaf7b163cc4dbd963cb9cd03a4ff1 |
|
07-Nov-2013 |
Dan Carpenter <dan.carpenter@oracle.com> |
pm2301-charger: Remove unneeded NULL checks If "pm2" were NULL we would oops printing the error message. Fortunately, that's not possible so I have removed the NULL checks. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Anton Vorontsov <anton@enomsg.org>
|
83bd57aeb06b1d6db2729082dd90a0286f3e3674 |
|
06-Sep-2013 |
Sachin Kamat <sachin.kamat@linaro.org> |
pm2301-charger: Staticize pm2xxx_charger_die_therm_mngt pm2xxx_charger_die_therm_mngt is used only in this file. Make it static. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Acked-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Anton Vorontsov <anton@enomsg.org>
|
508b2c13499aa459ff34123ec5641a72ca46777c |
|
06-Sep-2013 |
Sachin Kamat <sachin.kamat@linaro.org> |
pm2301-charger: Check return value of regulator_enable Check the return value of regulator_enable to silence the following warning: drivers/power/pm2301_charger.c:725:20: warning: ignoring return value of ‘regulator_enable’, declared with attribute warn_unused_result [-Wunused-result] Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Acked-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Anton Vorontsov <anton@enomsg.org>
|
0b1587b18bfed2fc686abfca7b942d75f859c465 |
|
16-Jul-2013 |
Masanari Iida <standby24x7@gmail.com> |
treewide: Fix typo in printk Correct spelling typo in printk Signed-off-by: Masanari Iida <standby24x7@gmail.com> Acked-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
|
c509a62c9469e2787bcacc7aba454d555732b0b6 |
|
16-May-2013 |
Axel Lin <axel.lin@ingics.com> |
pm2301_charger: Return error if create_singlethread_workqueue fails Return error instead of 0 if create_singlethread_workqueue call fails. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Anton Vorontsov <anton@enomsg.org>
|
df311333a8c13f3ffe2537a4ff507887208cb863 |
|
16-May-2013 |
Axel Lin <axel.lin@ingics.com> |
pm2301_charger: Fix NULL pointer dereference Add checking pl_data in probe, this prevent possible NULL pointer dereference. Also fix NULL pointer deference in dev_err when allocate memory for pm2 fails. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Anton Vorontsov <anton@enomsg.org>
|
dccab6092d3c25bf943d12fb658e63fd88bf8b4a |
|
04-May-2013 |
Axel Lin <axel.lin@ingics.com> |
pm2301_charger: Fix module alias prefix This driver is a i2c driver, use "i2c" rather than "platform" prefix for module alias. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Anton Vorontsov <anton@enomsg.org>
|
6b170807cd5cac8dc6353f47a88ccb14bbf76c4f |
|
13-Apr-2013 |
Lars-Peter Clausen <lars@metafoo.de> |
pm2301-charger: Fix suspend/resume The pm2301-charger driver implements runtime pm and at the same time uses the legacy pm callbacks for suspend and resume. This does not work since the I2C core wont look at the legacy pm callbacks if a driver has the 'pm' field set. This patch fixes it by moving over to dev_pm_ops for suspend/resume as well. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Anton Vorontsov <anton@enomsg.org>
|
92413a9bee1299cedcc0e5cfbfbc6b42496fb817 |
|
10-Mar-2013 |
Lars-Peter Clausen <lars@metafoo.de> |
pm2301_charger: Remove __dev* annotations The removal of __devinit and friends seems to have overlapped with the addition of the pm2301_charger driver. Currently the driver fails to build with the following errors: drivers/power/pm2301_charger.c:843:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pm2xxx_wall_charger_probe' drivers/power/pm2301_charger.c:1013:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pm2xxx_wall_charger_remove' drivers/power/pm2301_charger.c:1049:11: error: 'pm2xxx_wall_charger_probe' undeclared here (not in a function) drivers/power/pm2301_charger.c:1050:2: error: implicit declaration of function '__devexit_p' drivers/power/pm2301_charger.c:1050:24: error: 'pm2xxx_wall_charger_remove' undeclared here (not in a function) This patch removes the __dev* annotations, which fixes the build errors. Cc: Lee Jones <lee.jones@linaro.org> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Anton Vorontsov <anton@enomsg.org>
|
07f42258893d3768deb9a24165d23f1355bc1949 |
|
20-Mar-2013 |
Masanari Iida <standby24x7@gmail.com> |
treewide: Fix typos in printk Correct spelling typo in various drivers. Signed-off-by: Masanari Iida <standby24x7@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
|
9b7f50e3ea9a98f518fc4077f8bebc96717acff5 |
|
05-Dec-2012 |
Rupesh Kumar <rupesh.kumar@stericsson.com> |
pm2301-charger: Reference put missing after access Added missing pm_runtime_put_sync in read & write. Signed-off-by: Rupesh Kumar <rupesh.kumar@stericsson.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Reviewed-by: Sandeep TRIPATHY <sandeep.tripathy@stericsson.com> Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
|
b64f51c4adde8972afac778a63a19a30c6d5f4b0 |
|
05-Dec-2012 |
Rupesh Kumar <rupesh.kumar@stericsson.com> |
pm2301-charger: Wake device on register access When USB Dedicated or Standard host chargers are plugged into the device, chargealg attempts to disable the PM2301 AC charger, However, disabling PM2301 was failing because of it being in runtime suepend mode & LPN pin being low. Signed-off-by: Rupesh Kumar <rupesh.kumar@stericsson.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Reviewed-by: Marcus COOPER <marcus.xm.cooper@stericsson.com> Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
|
0f80ba63187439ef4ad3810ccd97633af9522be8 |
|
20-Nov-2012 |
Rupesh Kumar <rupesh.kumar@stericsson.com> |
pm2301-charger: Charging LED control for pm2301 The LED Indicator feature allows indicating through a led when the PM2301 battery charging is active. SW shall not disable this LED. Signed-off-by: Rupesh Kumar <rupesh.kumar@stericsson.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Reviewed-by: Marcus COOPER <marcus.xm.cooper@stericsson.com> Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
|
a21e22f2f36c65c8453575ffd0cc8267134bb30a |
|
13-Nov-2012 |
lme00437 <benoit.gauthier-nonst@stericsson.com> |
pm2301-charger: lpn pin used only in C2C boards This patch restricts use of LPN pin to C2C boards to avoid conflict on HSI for GPIO 60 use. Signed-off-by: Benoit GAUTHIER <benoit.gauthier-xsig@stericsson.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Reviewed-by: Mustapha BEN-ZOUBEIR <mustapha.ben.zoubeir-xsig@stericsson.com> Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com> Tested-by: Benoit GAUTHIER <benoit.gauthier-xsig@stericsson.com>
|
f70dfdec99877fa716f71633a67d7ba3dfab1c5f |
|
10-Oct-2012 |
Rupesh Kumar <rupesh.kumar@stericsson.com> |
pm2301-charger: Removed unused code from PM2301 driver Some of the headers and defines accrued over time are no longer in use. Let's take the opportunity to remove a few of them. Signed-off-by: Rupesh Kumar <rupesh.kumar@stericsson.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Reviewed-by: Marcus COOPER <marcus.xm.cooper@stericsson.com> Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
|
aee2b8468caf3d1eed6e329e828bc09eaa61063a |
|
25-Feb-2013 |
Lee Jones <lee.jones@linaro.org> |
pm2301-charger: Add pm_runtime_resume & pm_runtime_suspend To optimize the current consumption we use pm_runtime autosuspend functions which execute the pm_runtime_suspend after a delay of inactivity on the other hand we use pm_runtime_resume every time we receive an interruption to wake up the pm2301. Signed-off-by: M BenZoubeir <mustapha.ben.zoubeir-xsig@stericsson.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
|
f4095a0f06476e5914f2c58b4e96258b2e2ba6b7 |
|
13-Sep-2012 |
M BenZoubeir <mustapha.ben.zoubeir-xsig@stericsson.com> |
pm2301-charger: Adjust interrupt handler behavior Signed-off-by: M BenZoubeir <mustapha.ben.zoubeir-xsig@stericsson.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
|
d4f510f6c3f579bac0dbeaa8dc7c2dc768c31786 |
|
28-Jun-2012 |
Rupesh Kumar <rupesh.kumar@stericsson.com> |
pm2301-charger: Wake system when ext charger is plugged-in When in suspend state, upon plug-in of external AC charger the device needs to wake-up and charging operation started. Signed-off-by: Rupesh Kumar <rupesh.kumar@stericsson.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
|
da9e83d496039458fe9863540cf52b3f9b450675 |
|
15-Jul-2012 |
Rupesh Kumar <rupesh.kumar@stericsson.com> |
pm2301-charger: Die temp thermal protection This patch adds support for die temperature thermal protection in pm2301 driver. Signed-off-by: Rupesh Kumar <rupesh.kumar@stericsson.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Reviewed-by: Hakan BERG <hakan.berg@stericsson.com> Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
|
49fddeec9fbb0dd58507185104812fde77c38def |
|
27-Jun-2012 |
Mustapha Ben Zoubeir <mustapha.ben.zoubeir-nonst@stericsson.com> |
pm2301-charger: Resolve I2C detection problem on ab9540 Signed-off-by: Mustapha Ben Zoubeir <mustapha.ben.zoubeir-nonst@stericsson.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Reviewed-by: Marcus COOPER <marcus.xm.cooper@stericsson.com> Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com> Tested-by: Olivier CLERGEAUD <olivier.clergeaud@stericsson.com>
|
54fbbb6242247d06d21e21bbcf4ae8339bd75592 |
|
05-Jul-2012 |
Per Forlin <per.forlin@stericsson.com> |
pm2301-charger: Force main charger detect Force main charger detect in turn on status. Signed-off-by: Rajkumar Kasirajan <rajkumar.kasirajan@stericsson.com> Signed-off-by: Per Forlin <per.forlin@stericsson.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com> Tested-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
|
8891716e24d7b0f4b1c3b4fdff641bcb1fb282c4 |
|
13-Feb-2013 |
Lee Jones <lee.jones@linaro.org> |
ab8500-bm: Charge only mode fixes for the ab9540 Fix for charging not getting enabled in charge only mode by external charger. Signed-off-by: Lee Jones <lee.jones@linaro.org>
|
789ca7b46877f29b2aaa94401319c50be35b184f |
|
19-Jun-2012 |
Rupesh Kumar <rupesh.kumar@stericsson.com> |
pm2301-charger: Support for over voltage protection on the ab9540 Added support for main charger over voltage protection. Signed-off-by: Rupesh Kumar <rupesh.kumar@stericsson.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com> Tested-by: Michel JAOUEN <michel.jaouen@stericsson.com>
|
584f970339bb259d4ac7dd82b355f283550193b2 |
|
04-Jun-2012 |
Rajkumar Kasirajan <rajkumar.kasirajan@stericsson.com> |
pm2301-charger: Enable SW EOC control on the ab9540 End of charging is managed by SW. Signed-off-by: Rajkumar Kasirajan <rajkumar.kasirajan@stericsson.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Tested-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
116c326e74494806f2524ea07dc256f12b245652 |
|
25-Feb-2013 |
Lee Jones <lee.jones@linaro.org> |
pm2301_charger: Remove __exit, __init and __devexit_p() Signed-off-by: Lee Jones <lee.jones@linaro.org>
|
3988043b0ee1104d4cca7c57bbc23b16ea798b6f |
|
23-Jan-2013 |
Lee Jones <lee.jones@linaro.org> |
pm2301: LPN mode control support 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: Rupesh Kumar <rupesh.kumar@stericsson.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Reviewed-by: Marcus COOPER <marcus.xm.cooper@stericsson.com> Reviewed-by: Vijaya Kumar K-1 <vijay.kilari@stericsson.com> Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Tested-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
e41f39ea2a0e9ba32d6896c2cc38bfec880a0937 |
|
28-May-2012 |
Rajkumar Kasirajan <rajkumar.kasirajan@stericsson.com> |
pm2301: Enable vbat low monitoring Enable support for low battery checking. Signed-off-by: Rajkumar Kasirajan <rajkumar.kasirajan@stericsson.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Tested-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
e07a56453b14b929cf01bf032cc3e3220094609c |
|
10-May-2012 |
Loic Pallardy <loic.pallardy@stericsson.com> |
pm2301: Update watchdog for pm2xxx support 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: Rajkumar Kasirajan <rajkumar.kasirajan@stericsson.com> Signed-off-by: Loic Pallardy <loic.pallardy@stericsson.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Reviewed-by: Michel JAOUEN <michel.jaouen@stericsson.com> Reviewed-by: Marcus COOPER <marcus.xm.cooper@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Tested-by: Michel JAOUEN <michel.jaouen@stericsson.com> Tested-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
8757a08ea2dfe1824c19ed1c17b307e77a91ec82 |
|
10-May-2012 |
Loic Pallardy <loic.pallardy@stericsson.com> |
pm2301: Remove volt_now & curr_now properties 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: Rajkumar Kasirajan <rajkumar.kasirajan@stericsson.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Reviewed-by: Michel JAOUEN <michel.jaouen@stericsson.com> Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com> Tested-by: Michel JAOUEN <michel.jaouen@stericsson.com>
|
006f82d67cba34d44adcfd0b3698836ffc463d85 |
|
14-May-2012 |
Olivier Clergeaud <olivier.clergeaud@stericsson.com> |
pm2301: Clean-up PM2301 interrupt management Fix the way interrupts are handled within the PM2301 charging driver. Signed-off-by: Rajkumar Kasirajan <rajkumar.kasirajan@stericsson.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Reviewed-by: Olivier CLERGEAUD <olivier.clergeaud@stericsson.com> Reviewed-by: Marcus COOPER <marcus.xm.cooper@stericsson.com> Reviewed-by: Michel JAOUEN <michel.jaouen@stericsson.com> Tested-by: Michel JAOUEN <michel.jaouen@stericsson.com>
|
2fa5b0f4a5fff1fe77665ac380ca4322df42fe8d |
|
23-Jan-2013 |
Lee Jones <lee.jones@linaro.org> |
pm2301: Move all configuration and emum structs out to a header file Also shift the file description to a more suitable location. Signed-off-by: Lee Jones <lee.jones@linaro.org>
|
01ec8c5423901c4fe8d97f786ed9a0c31215b53a |
|
26-Apr-2012 |
Michel JAOUEN <michel.jaouen@stericsson.com> |
pm2301: Provide u9540 support for the pm2301 charger AC charger driver for the DB9540 based platforms. Signed-off-by: Rajkumar Kasirajan <rajkumar.kasirajan@stericsson.com> Signed-off-by: Loic Pallardy <loic.pallardy@stericsson.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Reviewed-by: Michel JAOUEN <michel.jaouen@stericsson.com> Tested-by: Michel JAOUEN <michel.jaouen@stericsson.com>
|