Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 250307
b: refs/heads/master
c: c812045
h: refs/heads/master
i:
  250305: 5d02bb0
  250303: 9ef6281
v: v3
  • Loading branch information
Jarod Wilson authored and Mauro Carvalho Chehab committed May 20, 2011
1 parent 2427938 commit 480f5c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 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: f0c1629dca6ffd8b1b07654704ac56c5a63270e3
refs/heads/master: c812045488afbe3830843fc6686ae84bfc928a5f
16 changes: 7 additions & 9 deletions trunk/drivers/media/rc/ite-cir.c
Original file line number Diff line number Diff line change
Expand Up @@ -1650,6 +1650,9 @@ static int ite_suspend(struct pnp_dev *pdev, pm_message_t state)

ite_dbg("%s called", __func__);

/* wait for any transmission to end */
wait_event_interruptible(dev->tx_ended, !dev->transmitting);

spin_lock_irqsave(&dev->lock, flags);

/* disable all interrupts */
Expand All @@ -1670,15 +1673,10 @@ static int ite_resume(struct pnp_dev *pdev)

spin_lock_irqsave(&dev->lock, flags);

if (dev->transmitting) {
/* wake up the transmitter */
wake_up_interruptible(&dev->tx_queue);
} else {
/* reinitialize hardware config registers */
dev->params.init_hardware(dev);
/* enable the receiver */
dev->params.enable_rx(dev);
}
/* reinitialize hardware config registers */
dev->params.init_hardware(dev);
/* enable the receiver */
dev->params.enable_rx(dev);

spin_unlock_irqrestore(&dev->lock, flags);

Expand Down

0 comments on commit 480f5c6

Please sign in to comment.