[Letux-kernel] suspend while usb connected

H. Nikolaus Schaller hns at goldelico.com
Sat Mar 4 10:29:49 CET 2017

> Am 03.03.2017 um 23:16 schrieb Andreas Kemnade <andreas at kemnade.info>:
> Hi,
> in recent kernels there are still problems when usb is connected and
> charging is enabled. The GTA04 immediately wakes up again is such
> situations.
> The reason seems to be an interrupt because the battery gets
> "disconnected" somehow.
> Removing  the twl4030_charger module and then enable
> charging by this commands (needs to be done quickly, so put them into a
> script):
> root at letux:~# cat chg-cmd.sh
> twl-i2c.sh PM_MASTER w 0x07 0x30
> twl-i2c.sh MAIN_CHARGE w 0x21 0x33
> twl-i2c.sh MAIN_CHARGE w 0x01 0x2a
> twl-i2c.sh MAIN_CHARGE w 0x01 0x26
> twl-i2c.sh MAIN_CHARGE w 0x21 0xf3
> twl-i2c.sh MAIN_CHARGE w 0x11 0x9c
> twl-i2c.sh MAIN_CHARGE w 0x14 0xf0
> changes the situation. Suspend does work again but charging seems to be
> turned off when going into suspend mode. So there must be something
> too much turned off (outside of twl4030-charger). For linear charging
> there need not to be that much power supplies enabled...
> Additionally removing omap2430, g_ether, twl4030-phy, the situation is
> not improved, the charging and suspend behavior is the same as with
> them.
> After some tries, just before I pushed the send button (with usb stuff
> loaded again), I get this lines in
> dmesg:
> [ 6485.887725] Disabling non-boot CPUs ...
> [ 6485.887756] Powerdomain (core_pwrdm) didn't enter target state 1
> [ 6485.887756] Could not enter target state in pm_suspend
> [ 6485.887756] Suspended for 254.797 seconds
> But charging works during suspend. Discharging is also working quite
> well during suspend after another try after that with usb
> disconnected. I had 100mA.
> But 4.10 kernel can go as low as 20mA in suspend


> and to 59mA when CPU is
> still running.


> Regards,
> Andreas
> _______________________________________________
> http://projects.goldelico.com/p/gta04-kernel/
> Letux-kernel mailing list
> Letux-kernel at openphoenux.org
> http://lists.goldelico.com/mailman/listinfo.cgi/letux-kernel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.goldelico.com/pipermail/letux-kernel/attachments/20170304/be135c03/attachment.asc>

More information about the Letux-kernel mailing list