linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: khalasa@piap.pl (Krzysztof Hałasa)
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 3.4.10 N_GSM tty_io WARNING and lockup
Date: Fri, 07 Sep 2012 13:07:20 +0200	[thread overview]
Message-ID: <m3627qt7kn.fsf@t19.piap.pl> (raw)
In-Reply-To: <20120906140137.75ebe6ba@pyramind.ukuu.org.uk> (Alan Cox's message of "Thu, 6 Sep 2012 14:01:37 +0100")

Alan Cox <alan@lxorguk.ukuu.org.uk> writes:

>> I'm trying to use GSM tty line discipline. Basically
>> 
>> echo AT+CMUX=0 > /dev/ttyS0
>> 
>> set termios (speed etc.)
>> int ldisc = N_GSM0710;
>> ioctl(fd, TIOCSETD, &ldisc);
>
> Baffled at this point. If you set some other ldisc instead (eg PPP) can
> you reproduce it the same way ?

In the meantime I've rebased to v3.5.3 and it started to work. Do you
think it is worth it investigating v3.4.10 at this point?

This is Atheros AR71xx based RouterStation Pro board (MIPS). I'm using
several patches supporting this board, though I can't see anything
relevant to serial/tty, except maybe the following (which is IMHO not
the problem source either):

@@ -1941,17 +1941,20 @@ static int serial8250_startup(struct uart_port *port)
	if (port->type == PORT_16C950) {
 		/* Wake up and initialize UART */
-		up->acr = 0;
+		up->acr = UART_ACR_RTS_485;
+		serial_icr_write(up, UART_ACR, up->acr);
 		serial_port_out(port, UART_LCR, UART_LCR_CONF_MODE_B);
 		serial_port_out(port, UART_EFR, UART_EFR_ECB);
 		serial_port_out(port, UART_IER, 0);
 		serial_port_out(port, UART_LCR, 0);
+#if 0
 		serial_icr_write(up, UART_CSR, 0); /* Reset the UART */
 		serial_port_out(port, UART_LCR, UART_LCR_CONF_MODE_B);
 		serial_port_out(port, UART_EFR, UART_EFR_ECB);
 		serial_port_out(port, UART_LCR, 0);
+#endif

Anyway the patchsets are almost identical with both kernel versions.
-- 
Krzysztof Halasa

Research Institute for Automation and Measurements PIAP
Al. Jerozolimskie 202, 02-486 Warsaw, Poland

  reply	other threads:[~2012-09-07 11:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-05 10:56 3.4.10 N_GSM tty_io WARNING and lockup Krzysztof Hałasa
2012-09-06 13:01 ` Alan Cox
2012-09-07 11:07   ` Krzysztof Hałasa [this message]
2012-09-07 12:59     ` Krzysztof Halasa
2012-09-07 13:29       ` Alan Cox
2012-09-07 16:14         ` Krzysztof Halasa

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=m3627qt7kn.fsf@t19.piap.pl \
    --to=khalasa@piap.pl \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.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).