Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97265
b: refs/heads/master
c: 03a74dc
h: refs/heads/master
i:
  97263: 3246c55
v: v3
  • Loading branch information
Arjan van de Ven authored and Linus Torvalds committed May 24, 2008
1 parent bdcd276 commit 92e2e78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: c4185a0e019387f5ad6e99009804965531fa1fab
refs/heads/master: 03a74dcc7eebe6edd778317e82fafdf71e68488c
5 changes: 4 additions & 1 deletion trunk/drivers/serial/serial_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2054,6 +2054,8 @@ int uart_suspend_port(struct uart_driver *drv, struct uart_port *port)
int uart_resume_port(struct uart_driver *drv, struct uart_port *port)
{
struct uart_state *state = drv->state + port->line;
struct device *tty_dev;
struct uart_match match = {port, drv};

mutex_lock(&state->mutex);

Expand All @@ -2063,7 +2065,8 @@ int uart_resume_port(struct uart_driver *drv, struct uart_port *port)
return 0;
}

if (!port->suspended) {
tty_dev = device_find_child(port->dev, &match, serial_match_port);
if (!port->suspended && device_may_wakeup(tty_dev)) {
disable_irq_wake(port->irq);
mutex_unlock(&state->mutex);
return 0;
Expand Down

0 comments on commit 92e2e78

Please sign in to comment.