Re: [PATCH 1/2] tty: n_gsm: Fix long delays with control frame timeouts in ADM mode

2018-04-16 Thread Tony Lindgren
* Pavel Machek [180416 08:46]: > Ahha, so first I missed two of the patches, and second, I was not > patient enough. I was stopping my test after first or second > error. Now I get... so I guess it works for me. OK good to hear. > For the series: > > Tested-by: Pavel Machek Thanks for testing

Re: [PATCH 1/2] tty: n_gsm: Fix long delays with control frame timeouts in ADM mode

2018-04-16 Thread Pavel Machek
> Do you have phy-mapphone-mdm6600 loaded? That is still needed to > configure all the boot mode pins for the modem so it is usable.. > The UART will then work also without ohci-platform, just the > USB PHY is disabled without ohci-platform. > > I have these in my .config: > CONFIG_SERIAL_8250_OM

Re: [PATCH 1/2] tty: n_gsm: Fix long delays with control frame timeouts in ADM mode

2018-04-12 Thread Tony Lindgren
* Pavel Machek [180412 21:25]: > sudo insmod /tmp/n_gsm.ko debug=0xff > > user@devuan:/my/droid4-ngsm$ sudo ./droid4-ngsm > Starting ngsm.. > Testing ngsm.. > Could not open /dev/gsmtty1: Level 2 halted > Trying to start ngsm again: Level 2 halted > Starting ngsm.. > Testing ngsm.. > Could not op

Re: [PATCH 1/2] tty: n_gsm: Fix long delays with control frame timeouts in ADM mode

2018-04-12 Thread Pavel Machek
On Mon 2018-04-09 06:42:59, Tony Lindgren wrote: > * Pavel Machek [180409 10:56]: > > Ok, I should have all that enabled. But droid4-ngsm still fails: > > > > user@devuan:/my/droid4-ngsm$ sudo ./droid4-ngsm > > Starting ngsm.. > > Testing ngsm.. > > Could not open /dev/gsmtty1: Level 2 halted > >

Re: [PATCH 1/2] tty: n_gsm: Fix long delays with control frame timeouts in ADM mode

2018-04-10 Thread Tony Lindgren
* Pavel Machek [180410 11:11]: > Should the modem respond to AT commands on ttyS0? I launched minicom > (115200 8N1) and I'm not getting any responses. Not that I know. At least I never got anything out of it. But who knows, maybe it is in normal mode initially during boot or when mdm6600 is bein

Re: [PATCH 1/2] tty: n_gsm: Fix long delays with control frame timeouts in ADM mode

2018-04-10 Thread Pavel Machek
On Mon 2018-04-09 06:42:59, Tony Lindgren wrote: > * Pavel Machek [180409 10:56]: > > Ok, I should have all that enabled. But droid4-ngsm still fails: > > > > user@devuan:/my/droid4-ngsm$ sudo ./droid4-ngsm > > Starting ngsm.. > > Testing ngsm.. > > Could not open /dev/gsmtty1: Level 2 halted > >

Re: [PATCH 1/2] tty: n_gsm: Fix long delays with control frame timeouts in ADM mode

2018-04-09 Thread Tony Lindgren
* Pavel Machek [180409 10:56]: > Ok, I should have all that enabled. But droid4-ngsm still fails: > > user@devuan:/my/droid4-ngsm$ sudo ./droid4-ngsm > Starting ngsm.. > Testing ngsm.. > Could not open /dev/gsmtty1: Level 2 halted > Trying to start ngsm again: Level 2 halted > Starting ngsm.. I

Re: [PATCH 1/2] tty: n_gsm: Fix long delays with control frame timeouts in ADM mode

2018-04-09 Thread Pavel Machek
Hi! > > > > Do you have a tool to use and a script? > > > > > > Yes I used the shell script I posted earlier, but forgot it also > > > needs the ldattach done. > > > > > > Anyways, last night and today I wrote a quick test utility called > > > droid4-ngsm that initializes things and I can use to

Re: [PATCH 1/2] tty: n_gsm: Fix long delays with control frame timeouts in ADM mode

2018-04-08 Thread Tony Lindgren
* Pavel Machek [180408 19:07]: > Hi! > > > > Do you have a tool to use and a script? > > > > Yes I used the shell script I posted earlier, but forgot it also > > needs the ldattach done. > > > > Anyways, last night and today I wrote a quick test utility called > > droid4-ngsm that initializes t

Re: [PATCH 1/2] tty: n_gsm: Fix long delays with control frame timeouts in ADM mode

2018-04-08 Thread Pavel Machek
Hi! > > Do you have a tool to use and a script? > > Yes I used the shell script I posted earlier, but forgot it also > needs the ldattach done. > > Anyways, last night and today I wrote a quick test utility called > droid4-ngsm that initializes things and I can use to do some > experiments to ge

Re: [PATCH 1/2] tty: n_gsm: Fix long delays with control frame timeouts in ADM mode

2018-04-08 Thread Tony Lindgren
* Pavel Machek [180408 09:04]: > I guess I'd like to test this on Droid4; there are fso-gsm0710muxd and > gsm0710muxd packages in Debian, but I assume those do multiplexing in > userspace and thus are not suitable? I don't think those are needed, we now have kernel n_gsm driver do most of the wor

Re: [PATCH 1/2] tty: n_gsm: Fix long delays with control frame timeouts in ADM mode

2018-04-08 Thread Pavel Machek
Hi! > Commit ea3d8465ab9b ("tty: n_gsm: Allow ADM response in addition to UA for > control dlci") added support for DLCI to stay in Asynchronous Disconnected > Mode (ADM). But we still get long delays waiting for commands to other > DLCI to complete: > > --> 5) C: SABM(P) > Q> 0) C: UIH(F) > Q>

[PATCH 1/2] tty: n_gsm: Fix long delays with control frame timeouts in ADM mode

2018-04-07 Thread Tony Lindgren
Commit ea3d8465ab9b ("tty: n_gsm: Allow ADM response in addition to UA for control dlci") added support for DLCI to stay in Asynchronous Disconnected Mode (ADM). But we still get long delays waiting for commands to other DLCI to complete: --> 5) C: SABM(P) Q> 0) C: UIH(F) Q> 0) C: UIH(F) Q> 0)