Similar to the exit_lpm callback which is called with the lock
held, call the rx_done callback with lock held.
Change-Id: I307d5191669ef6816d8406bb421b2c10c902f6a8
Signed-off-by: Jaikumar Ganesh <jaikumar@google.com>
spin_unlock(&u->lock);
tty_flip_buffer_push(u->state->port.tty);
+ spin_lock(&u->lock);
if (t->rx_done_cb)
t->rx_done_cb(u);
- spin_lock(&u->lock);
}
/* Lock already taken */
spin_unlock_irqrestore(&u->lock, flags);
tty_flip_buffer_push(u->state->port.tty);
+ spin_lock_irqsave(&u->lock, flags);
if (t->rx_done_cb)
t->rx_done_cb(u);
- spin_lock_irqsave(&u->lock, flags);
}
break;
case 3: /* Receive error */