[Letux-kernel] wwan logic inversion

Andreas Kemnade andreas at kemnade.info
Fri Nov 23 17:16:02 CET 2018


Hi,

console log says this.

[24004.991638] wwan_on_off_rfkill_set_block: blocked: 0
[24005.008514] wwan_on_off_set_power:on = 1
[24005.013885] wwan_on_off_is_powered_on: USB phy event 0
[24005.026580] wwan_on_off_is_powered_on: we assume 1
[24005.031585] wwan_on_off_is_powered_on: return 'true'
[24005.037811] wwan_on_off_set_power: state 1
[24005.042388] wwan_on_off_set_power: done
[24092.102325] wwan_on_off_rfkill_set_block: blocked: 0
[24092.107940] wwan_on_off_set_power:on = 1
[24092.112030] wwan_on_off_is_powered_on: USB phy event 0
[24092.118408] wwan_on_off_is_powered_on: we assume 1
[24092.123962] wwan_on_off_is_powered_on: return 'true'
[24092.129302] wwan_on_off_set_power: state 1
[24092.134033] wwan_on_off_set_power: done

using devmem2 for gpio toggle fixes the logic.
root at gta04:/sys/firmware/devicetree/base/modem# xxd on-indicator-gpio 
0000000: 0000 0000                                ....

That does not look good.

Regards,
Andreas

On Fri, 23 Nov 2018 13:50:18 +0100
"H. Nikolaus Schaller" <hns at goldelico.com> wrote:

> HI,
> I also remember such a thing but there was a patch a while ago.
> But I do not remember if it was for gta04a5 or if I did merge it into 4.19...
> 
> What does the console log say for rkill unblock/block? It should
> report he feedback status and the on-off impulse.
> 
> BR,
> Nikolaus
> 
> > Am 23.11.2018 um 13:06 schrieb Andreas Kemnade <andreas at kemnade.info>:
> > 
> > Hi,
> > 
> > I was just wondering about strange suspend current behavior and
> > found out that wwan logic misbehaves on my gta04a5:
> > 
> > root at gta04:~# twl-i2c.sh GPIO r 0
> > 0x02
> > root at gta04:~# lsusb 
> > Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> > Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> > root at gta04:~# rfkill block wwan
> > root at gta04:~# twl-i2c.sh GPIO r 0
> > 0x42
> > root at gta04:~# lsusb 
> > Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> > Bus 002 Device 003: ID 0af0:8800 Option 
> > Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> > root at gta04:~# rfkill unblock wwan
> > root at gta04:~# twl-i2c.sh GPIO r 0
> > 0x02
> > root at gta04:~# lsusb 
> > Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> > Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> > root at gta04:~# rfkill block wwan
> > root at gta04:~# twl-i2c.sh GPIO r 0
> > 0x42
> > root at gta04:~# lsusb 
> > Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> > Bus 002 Device 004: ID 0af0:8800 Option 
> > Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> > root at gta04:~# rfkill unblock wwan
> > root at gta04:~# twl-i2c.sh GPIO r 0
> > 0x02
> > root at gta04:~# lsusb 
> > Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> > Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> > root at gta04:~# uname -a
> > Linux gta04 4.19.3-letux+ #72 SMP PREEMPT Thu Nov 22 21:14:08 CET 2018 armv7l GNU/Linux
> > root at gta04:~# 
> > 
> > 
> > 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  
> 
> _______________________________________________
> 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: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.goldelico.com/pipermail/letux-kernel/attachments/20181123/f09e03ac/attachment.asc>


More information about the Letux-kernel mailing list