Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76477
b: refs/heads/master
c: 3203cb8
h: refs/heads/master
i:
  76475: 28efce5
v: v3
  • Loading branch information
Maxim Levitsky authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent bf680aa commit 5fc868a
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 0d65cd4f2bfe70872e4218d9d35d37a7000d6739
refs/heads/master: 3203cb86d22c63504f8368151029bf9dad014ddb
8 changes: 7 additions & 1 deletion trunk/drivers/media/video/saa7134/saa7134-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1181,8 +1181,13 @@ static int saa7134_suspend(struct pci_dev *pci_dev , pm_message_t state)
saa_writel(SAA7134_IRQ2, 0);
saa_writel(SAA7134_MAIN_CTRL, 0);

synchronize_irq(pci_dev->irq);
dev->insuspend = 1;
synchronize_irq(pci_dev->irq);

/* ACK interrupts once more, just in case,
since the IRQ handler won't ack them anymore*/

saa_writel(SAA7134_IRQ_REPORT, saa_readl(SAA7134_IRQ_REPORT));

/* Disable timeout timers - if we have active buffers, we will
fill them on resume*/
Expand Down Expand Up @@ -1246,6 +1251,7 @@ static int saa7134_resume(struct pci_dev *pci_dev)

/* start DMA now*/
dev->insuspend = 0;
smp_wmb();
saa7134_set_dmabits(dev);
spin_unlock_irqrestore(&dev->slock, flags);

Expand Down

0 comments on commit 5fc868a

Please sign in to comment.