Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338434
b: refs/heads/master
c: 33b48e1
h: refs/heads/master
v: v3
  • Loading branch information
Shinya Kuribayashi authored and Greg Kroah-Hartman committed Nov 16, 2012
1 parent f09e64b commit e35db80
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 40f70c03e33a1eed3f3fcd13418e76abad77d117
refs/heads/master: 33b48e1633f738c5ae78234c2dd5e3a9ba115437
6 changes: 6 additions & 0 deletions trunk/drivers/tty/serial/sh-sci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1743,6 +1743,7 @@ static inline void sci_free_dma(struct uart_port *port)
static int sci_startup(struct uart_port *port)
{
struct sci_port *s = to_sci_port(port);
unsigned long flags;
int ret;

dev_dbg(port->dev, "%s(%d)\n", __func__, port->line);
Expand All @@ -1753,20 +1754,25 @@ static int sci_startup(struct uart_port *port)

sci_request_dma(port);

spin_lock_irqsave(&port->lock, flags);
sci_start_tx(port);
sci_start_rx(port);
spin_unlock_irqrestore(&port->lock, flags);

return 0;
}

static void sci_shutdown(struct uart_port *port)
{
struct sci_port *s = to_sci_port(port);
unsigned long flags;

dev_dbg(port->dev, "%s(%d)\n", __func__, port->line);

spin_lock_irqsave(&port->lock, flags);
sci_stop_rx(port);
sci_stop_tx(port);
spin_unlock_irqrestore(&port->lock, flags);

sci_free_dma(port);
sci_free_irq(s);
Expand Down

0 comments on commit e35db80

Please sign in to comment.