mbox series

[PATCHv2,0/2] cpcap charger and battery fixes

Message ID 20191016223005.9246-1-tony@atomide.com (mailing list archive)
Headers show
Series cpcap charger and battery fixes | expand

Message

Tony Lindgren Oct. 16, 2019, 10:30 p.m. UTC
Hi,

Here are few fixes for cpcap charger and battery. These can probably wait
for v5.5 if preferred that way and can be applied separate from the 4.2V
charger fix.

Regards,

Tony

Changes since v2:

- Drop the pointless test for latest->voltage >= 0 as noted by Pavel

- Allow poweroff to trigger at 3.2V and lower as suggested by Pavel

Changes since v1:

- Sent the updated 4.2V voltage fix separately

Tony Lindgren (2):
  power: supply: cpcap-battery: Check voltage before orderly_poweroff
  power: supply: cpcap-charger: Improve battery detection

 drivers/power/supply/cpcap-battery.c | 8 +++++---
 drivers/power/supply/cpcap-charger.c | 7 ++++---
 2 files changed, 9 insertions(+), 6 deletions(-)

Comments

Sebastian Reichel Oct. 20, 2019, 8:35 p.m. UTC | #1
Hi,

On Wed, Oct 16, 2019 at 03:30:03PM -0700, Tony Lindgren wrote:
> Hi,
> 
> Here are few fixes for cpcap charger and battery. These can probably wait
> for v5.5 if preferred that way and can be applied separate from the 4.2V
> charger fix.
> 
> Regards,
> 
> Tony
> 
> Changes since v2:
> 
> - Drop the pointless test for latest->voltage >= 0 as noted by Pavel
> 
> - Allow poweroff to trigger at 3.2V and lower as suggested by Pavel
> 
> Changes since v1:
> 
> - Sent the updated 4.2V voltage fix separately
> 
> Tony Lindgren (2):
>   power: supply: cpcap-battery: Check voltage before orderly_poweroff
>   power: supply: cpcap-charger: Improve battery detection
> 
>  drivers/power/supply/cpcap-battery.c | 8 +++++---
>  drivers/power/supply/cpcap-charger.c | 7 ++++---
>  2 files changed, 9 insertions(+), 6 deletions(-)

Thanks, queued.

-- Sebastian