Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1315103

Re: [PATCH 2/4] tty: serial: 8250: add optional spinlock arg to serial8250_rx_chars

From Peter Hurley <peter@hurleysoftware.com>
Newsgroups linux.kernel
Subject Re: [PATCH 2/4] tty: serial: 8250: add optional spinlock arg to serial8250_rx_chars
Date 2016-01-22 17:20 +0100
Message-ID <qTMBj-6ri-7@gated-at.bofh.it> (permalink)
References <qTH8C-2I1-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi John,

On 01/22/2016 02:27 AM, John Ogness wrote:
> serial8250_rx_chars() must be called from interrupt context and with
> the port lock held. The port lock is released temporarily within that
> function to call tty_flip_buffer_push(). However, there may be other
> drivers that need to synchronize the tty_flip_buffer_push() call within
> serial8250_rx_chars() with other contexts. Since the port lock cannot
> be used for this synchronization, an optional spinlock argument is added.
> If non-NULL, this will be locked during the tty_flip_buffer_push() call.

I removed the port lock drop-claim in serial8250_rx_chars in patch
"serial: 8250: Remove low_latency workaround" (Greg has this patch in his
inbox but not in next because of the merge window).

IOW, you can drop this patch.

Regards,
Peter Hurley

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 2/4] tty: serial: 8250: add optional spinlock arg to serial8250_rx_chars John Ogness <john.ogness@linutronix.de> - 2016-01-22 11:30 +0100
  Re: [PATCH 2/4] tty: serial: 8250: add optional spinlock arg to  serial8250_rx_chars Peter Hurley <peter@hurleysoftware.com> - 2016-01-22 17:20 +0100

csiph-web