Thread (18 messages) 18 messages, 5 authors, 2014-09-05
DORMANTno replies
Revisions (8)
  1. rfc [diff vs current]
  2. rfc [diff vs current]
  3. rfc [diff vs current]
  4. rfc [diff vs current]
  5. rfc [diff vs current]
  6. rfc [diff vs current]
  7. rfc [diff vs current]
  8. rfc current

[RFC PATCH 1/1] drivers: introduce ARM SBSA generic UART driver

From: Peter Hurley <hidden>
Date: 2014-09-05 15:24:52
Also in: linux-serial

On 09/05/2014 10:44 AM, Andre Przywara wrote:
On 02/09/14 19:19, Peter Hurley wrote:
quoted
On 08/29/2014 12:13 PM, Andre Przywara wrote:
quoted
+static void
+sbsa_uart_set_termios(struct uart_port *port, struct ktermios *termios,
+               struct ktermios *old)
+{
+     unsigned long flags;
+     unsigned int baud = 115200;
+
+     spin_lock_irqsave(&port->lock, flags);
        ^^^^^^^^^^^^^^^^^

Can be spin_lock_irq(&port->lock) here.
Why is this? Because this code cannot be called with interrupts already
off?
Yes.
This would apply to the original PL011 driver also then?
Also, yes.

I mentioned it because new code should use the spin_lock_irq() flavor
[primarily as a visual aid for driver authors].

Regards,
Peter Hurley
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help