Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280700
b: refs/heads/master
c: ee815f3
h: refs/heads/master
v: v3
  • Loading branch information
Mayank Rana authored and Greg Kroah-Hartman committed Dec 10, 2011
1 parent d3a82ac commit 70d8625
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: 8431de80dad20979cc8354a90f70e2faac017932
refs/heads/master: ee815f3a76a0d874bd29635366af572fb6ebe535
7 changes: 2 additions & 5 deletions trunk/drivers/tty/serial/msm_serial_hs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1087,20 +1087,17 @@ static void msm_hs_config_port(struct uart_port *uport, int cfg_flags)
}

/* Handle CTS changes (Called from interrupt handler) */
static void msm_hs_handle_delta_cts(struct uart_port *uport)
static void msm_hs_handle_delta_cts_locked(struct uart_port *uport)
{
unsigned long flags;
struct msm_hs_port *msm_uport = UARTDM_TO_MSM(uport);

spin_lock_irqsave(&uport->lock, flags);
clk_enable(msm_uport->clk);

/* clear interrupt */
msm_hs_write(uport, UARTDM_CR_ADDR, RESET_CTS);
uport->icount.cts++;

clk_disable(msm_uport->clk);
spin_unlock_irqrestore(&uport->lock, flags);

/* clear the IOCTL TIOCMIWAIT if called */
wake_up_interruptible(&uport->state->port.delta_msr_wait);
Expand Down Expand Up @@ -1248,7 +1245,7 @@ static irqreturn_t msm_hs_isr(int irq, void *dev)

/* Change in CTS interrupt */
if (isr_status & UARTDM_ISR_DELTA_CTS_BMSK)
msm_hs_handle_delta_cts(uport);
msm_hs_handle_delta_cts_locked(uport);

spin_unlock_irqrestore(&uport->lock, flags);

Expand Down

0 comments on commit 70d8625

Please sign in to comment.