linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Pavel Machek <pavel@ucw.cz>
Cc: Sebastian Reichel <sre@kernel.org>,
	linux-pm@vger.kernel.org, linux-omap@vger.kernel.org,
	Merlijn Wajer <merlijn@wizzup.org>
Subject: Re: [PATCH 2/3] power: supply: cpcap-battery: Check voltage before orderly_poweroff
Date: Sun, 22 Sep 2019 11:00:12 -0700	[thread overview]
Message-ID: <20190922180012.GU5610@atomide.com> (raw)
In-Reply-To: <20190920141237.GK5610@atomide.com>

* Tony Lindgren <tony@atomide.com> [190920 14:13]:
> * Pavel Machek <pavel@ucw.cz> [190919 09:15]:
> > Plus I see bigger problem: shutdown from mainline seems to leave
> > something powered in the phone (I believe I seen USB charge pump, for
> > example), so the battery will be completely empty next time I attempt
> > to use the phone. (I learned to reboot into stock android and shutdown
> > there).
> > 
> > Phone should last days when powered off, but it seems to only last
> > hours.
> > 
> > Unfortunately I don't know how to debug that :-(.
> 
> Yes there's some issue with shutdown. I think it's somehow related
> to mdm6600 being powered where the poweroff gpio does not allow
> device to shut down with modem powered. We could try adding a
> .power_off function to the modem code to see if it helps.

Sorry I mean .shutdown function. But I doubt this is a modem
issue you're seeing, I already fixed that issue most likely with
commit 8ead7e817224 ("usb: core: Add PM runtime calls to
usb_hcd_platform_shutdown"). Well at least things are shutting
down for me now after checking few times. I recall the symptoms
of the shut down failing issue is that the also the LCD backlight
stays on.

There are some issues left with musb configured as a usb
gadget, but I have not been able to quite track those down
so far. It seems that there are some gadget framework kobject
warnings with the musb controlling device (omap2430) unloaded
and then doing a shutdown. The device shuts down though.

> Additionally I've noticed that we leave some PMIC features powered
> when device is powered off without a modem consuming about 2.5mW
> while powering off from Android shows power consumption in uW
> range probably with only RTC being powered.

AFAIK this issue still remains. I'll take a look at adding a
.shutdown somewhere for cpcap driver(s) so we get it cleared
for a low-power state.

Regards,

Tony

  reply	other threads:[~2019-09-22 18:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-17 21:34 [PATCH 0/3] cpcap charger and battery fixes Tony Lindgren
2019-09-17 21:34 ` [PATCH 1/3] power: supply: cpcap-charger: Limit voltage to 4.2V for battery Tony Lindgren
2019-09-19  9:05   ` Pavel Machek
2019-09-20 14:03     ` Tony Lindgren
2019-09-17 21:35 ` [PATCH 2/3] power: supply: cpcap-battery: Check voltage before orderly_poweroff Tony Lindgren
2019-09-19  9:14   ` Pavel Machek
2019-09-20 14:12     ` Tony Lindgren
2019-09-22 18:00       ` Tony Lindgren [this message]
2019-09-17 21:35 ` [PATCH 3/3] power: supply: cpcap-charger: Improve battery detection Tony Lindgren
2019-09-19  9:19   ` Pavel Machek
2019-09-20 14:18     ` Tony Lindgren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190922180012.GU5610@atomide.com \
    --to=tony@atomide.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=merlijn@wizzup.org \
    --cc=pavel@ucw.cz \
    --cc=sre@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).