mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Tobias Klauser <tklauser@distanz.ch>
Cc: linux-serial@vger.kernel.org, nios2-dev@sopc.et.ntust.edu.tw,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] serial: Add driver for the Altera JTAG UART
Date: Fri, 26 Feb 2010 11:27:15 +0000	[thread overview]
Message-ID: <20100226112715.207bbd13@lxorguk.ukuu.org.uk> (raw)
In-Reply-To: <20100226090456.GA32296@distanz.ch>

> > Use tty_termios_copy_hw() to copy the old termios hardware settings back
> > so that the caller sees it cannot set them.
> 
> Would the following be sufficient?
> 
>   if (old)
>           tty_termios_copy_hw(termios, old);

That will do the trick yes.

>   spin_lock(&port->lock);
> 
>   if (isr & ALTERA_JTAGUART_CONTROL_RE_MSK)
>           altera_jtaguart_rx_chars(pp);
>   if (isr & ALTERA_JTAGUART_CONTROL_WE_MSK)
>           altera_jtaguart_tx_chars(pp);
> 
>   spin_unlock(&port->lock);

Yes - that stops ->tty becoming NULL while your handler is running

Alan

  reply	other threads:[~2010-02-26 11:23 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-25 14:35 Tobias Klauser
2010-02-25 14:35 ` [PATCH 2/2] serial: Add driver for the Altera UART Tobias Klauser
2010-02-25 14:47 ` [RESEND PATCH " Tobias Klauser
2010-02-26 19:50   ` Dan Carpenter
2010-03-01  8:04     ` Tobias Klauser
2010-02-25 15:26 ` [PATCH 1/2] serial: Add driver for the Altera JTAG UART Alan Cox
2010-02-26  9:04   ` Tobias Klauser
2010-02-26 11:27     ` Alan Cox [this message]
2010-02-25 16:45 ` Peter Korsgaard
2010-02-26  9:06   ` Tobias Klauser
2010-05-05  8:35 [PATCH v5 0/2] serial: Drivers for Altera UARTs Tobias Klauser
2010-05-05  8:35 ` [PATCH 1/2] serial: Add driver for the Altera JTAG UART Tobias Klauser

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=20100226112715.207bbd13@lxorguk.ukuu.org.uk \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=nios2-dev@sopc.et.ntust.edu.tw \
    --cc=tklauser@distanz.ch \
    /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

all inboxes | Powered by JetHome®