Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163850
b: refs/heads/master
c: a2bceae
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and Live-CD User committed Sep 19, 2009
1 parent 3fcf6d0 commit 8c678fb
Show file tree
Hide file tree
Showing 4 changed files with 124 additions and 115 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: a03006860d272eac5a8ebf23f04f54c7e1e783a5
refs/heads/master: a2bceae065ed8c4f552b35c4dde4cc2db05ce9e3
8 changes: 4 additions & 4 deletions trunk/drivers/serial/pmac_zilog.c
Original file line number Diff line number Diff line change
Expand Up @@ -1645,7 +1645,7 @@ static int pmz_suspend(struct macio_dev *mdev, pm_message_t pm_state)
state = pmz_uart_reg.state + uap->port.line;

mutex_lock(&pmz_irq_mutex);
mutex_lock(&state->mutex);
mutex_lock(&state->port.mutex);

spin_lock_irqsave(&uap->port.lock, flags);

Expand Down Expand Up @@ -1676,7 +1676,7 @@ static int pmz_suspend(struct macio_dev *mdev, pm_message_t pm_state)
/* Shut the chip down */
pmz_set_scc_power(uap, 0);

mutex_unlock(&state->mutex);
mutex_unlock(&state->port.mutex);
mutex_unlock(&pmz_irq_mutex);

pmz_debug("suspend, switching complete\n");
Expand Down Expand Up @@ -1705,7 +1705,7 @@ static int pmz_resume(struct macio_dev *mdev)
state = pmz_uart_reg.state + uap->port.line;

mutex_lock(&pmz_irq_mutex);
mutex_lock(&state->mutex);
mutex_lock(&state->port.mutex);

spin_lock_irqsave(&uap->port.lock, flags);
if (!ZS_IS_OPEN(uap) && !ZS_IS_CONS(uap)) {
Expand Down Expand Up @@ -1737,7 +1737,7 @@ static int pmz_resume(struct macio_dev *mdev)
}

bail:
mutex_unlock(&state->mutex);
mutex_unlock(&state->port.mutex);
mutex_unlock(&pmz_irq_mutex);

/* Right now, we deal with delay by blocking here, I'll be
Expand Down
Loading

0 comments on commit 8c678fb

Please sign in to comment.