[Gta04-owner] Modem off
NeilBrown
neilb at suse.de
Sat Nov 16 00:18:40 CET 2013
On Wed, 13 Nov 2013 15:45:31 +0100 Andreas Kemnade <andreas at kemnade.info>
wrote:
> Hi,
>
> On Tue, 2013-11-12 at 09:49 +1100, NeilBrown wrote:
> > On Mon, 11 Nov 2013 16:38:31 +0100 Andreas Kemnade <andreas at kemnade.info>
> > wrote:
> >
> > > >
> > > > I look forward to hearing of your results.
> > >
> > > At the moment I even cannot reproduce your the lower currents when the
> > > module is removed or unbind is done (when the modem does not show up on
> > > the bus). I measured current_now directly after suspend and retried also
> > > with that 5-min average using charge_now.
> >
> > What current do you measure?
>
> 3.7 with ehci-hcd compiled in
> - 32mA without modem, 2 tries
> doing unbind
> - 45mA (3x)
> doing bind
> - 54mA
> - 24mA
> - 24mA
> - 54mA
>
> doing unbind
>
> - 45mA
> - 45mA
>
> doing bind
> - 24mA
> - 24mA
> - 47mA(?)
> - 24mA
> - 24mA
> - 41mA(?)
So if we ignore occasional high values you get about 24mA when the driver is
bound, and about 45mA when not bound.
That is the oppositte of what I get for loading and unloading, which is
surprising.
Is this will the modem still turned off? (Do you have an A3 or an A4?).
I might try the bind/unbind approach and see if I get similar results.
I might try the neil-plus kernel to do see if that makes any difference.
NeilBrown
>
>
> > Is it consistent over several measurements?
>
> I retried it using some 5 minute slots (the values above are current_now
> after suspend), and i never got any lower values than the ones from
> above.
>
> > What kernel are you using?
> >
> A 3.7-nplus kernel with the following change to the offmode thingy:
> --- a/arch/arm/mach-omap2/pm34xx.c
> +++ b/arch/arm/mach-omap2/pm34xx.c
> @@ -377,12 +377,12 @@ static int omap3_pm_suspend(void)
> /* Set ones wanted by suspend */
> list_for_each_entry(pwrst, &pwrst_list, node) {
> if (strcmp(pwrst->pwrdm->name, "core_pwrdm") == 0) {
> - static int times = 0;
> - times++;
> - if (times == 1)
> + // static int times = 0;
> + // times++;
> + // if (times == 1)
> pwrst->next_state = PWRDM_POWER_RET;
> - if (times == 2)
> - pwrst->next_state = PWRDM_POWER_OFF;
> + // if (times == 2)
> + // pwrst->next_state = PWRDM_POWER_OFF;
> }
> if (omap_set_pwrdm_state(pwrst->pwrdm,
> pwrst->next_state))
> goto restore;
>
> I did this because suspend did only work once. I also retried using the
> qtmoko56.2 kernel
>
> Greetings
> Andreas Kemnade
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: not available
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20131116/6e22f29e/attachment.bin>
More information about the Gta04-owner
mailing list