Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176422
b: refs/heads/master
c: 1282b35
h: refs/heads/master
v: v3
  • Loading branch information
Paul Fertser authored and Anton Vorontsov committed Nov 16, 2009
1 parent e25c59b commit fedc44e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e98c73a24f33d6f54402f5cef2e7bf282d1d1fcc
refs/heads/master: 1282b35a1edf5f12ae58a2b16ae8615dfe0d9ecc
10 changes: 7 additions & 3 deletions trunk/drivers/power/pcf50633-charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,18 @@ int pcf50633_mbc_usb_curlim_set(struct pcf50633 *pcf, int ma)
chgmod = (mbcs2 & PCF50633_MBCS2_MBC_MASK);

/* If chgmod == BATFULL, setting chgena has no effect.
* We need to set resume instead.
* Datasheet says we need to set resume instead but when autoresume is
* used resume doesn't work. Clear and set chgena instead.
*/
if (chgmod != PCF50633_MBCS2_MBC_BAT_FULL)
pcf50633_reg_set_bit_mask(pcf, PCF50633_REG_MBCC1,
PCF50633_MBCC1_CHGENA, PCF50633_MBCC1_CHGENA);
else
else {
pcf50633_reg_clear_bits(pcf, PCF50633_REG_MBCC1,
PCF50633_MBCC1_CHGENA);
pcf50633_reg_set_bit_mask(pcf, PCF50633_REG_MBCC1,
PCF50633_MBCC1_RESUME, PCF50633_MBCC1_RESUME);
PCF50633_MBCC1_CHGENA, PCF50633_MBCC1_CHGENA);
}

mbc->usb_active = charging_start;

Expand Down

0 comments on commit fedc44e

Please sign in to comment.