Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104702
b: refs/heads/master
c: 768aec0
h: refs/heads/master
v: v3
  • Loading branch information
Anton Vorontsov authored and Linus Torvalds committed Jul 22, 2008
1 parent 7c30813 commit 099ab41
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 88e882497d154dfb7c341902c079c9daeca1626f
refs/heads/master: 768aec0b5bccbd460bcf6e9131f19b5a26f3862d
8 changes: 6 additions & 2 deletions trunk/drivers/serial/8250.c
Original file line number Diff line number Diff line change
Expand Up @@ -1874,7 +1874,9 @@ static int serial8250_startup(struct uart_port *port)
* the interrupt is enabled. Delays are necessary to
* allow register changes to become visible.
*/
spin_lock_irqsave(&up->port.lock, flags);
spin_lock(&up->port.lock);
if (up->port.flags & UPF_SHARE_IRQ)
disable_irq_nosync(up->port.irq);

wait_for_xmitr(up, UART_LSR_THRE);
serial_out_sync(up, UART_IER, UART_IER_THRI);
Expand All @@ -1886,7 +1888,9 @@ static int serial8250_startup(struct uart_port *port)
iir = serial_in(up, UART_IIR);
serial_out(up, UART_IER, 0);

spin_unlock_irqrestore(&up->port.lock, flags);
if (up->port.flags & UPF_SHARE_IRQ)
enable_irq(up->port.irq);
spin_unlock(&up->port.lock);

/*
* If the interrupt is not reasserted, setup a timer to
Expand Down

0 comments on commit 099ab41

Please sign in to comment.