Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200287
b: refs/heads/master
c: 3defb24
h: refs/heads/master
i:
  200285: f78f061
  200283: 5d36ec0
  200279: 71c7730
  200271: 155ce0c
  200255: 634d279
v: v3
  • Loading branch information
Marek Vašut authored and Russell King committed May 27, 2010
1 parent 28918b7 commit a26154b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: ba327b1e5296b70745e50bcf0446ae8f82e3d478
refs/heads/master: 3defb2476166445982a90c12d33f8947e75476c4
9 changes: 7 additions & 2 deletions trunk/arch/arm/common/sa1111.c
Original file line number Diff line number Diff line change
Expand Up @@ -951,8 +951,6 @@ static int sa1111_resume(struct platform_device *dev)
if (!save)
return 0;

spin_lock_irqsave(&sachip->lock, flags);

/*
* Ensure that the SA1111 is still here.
* FIXME: shouldn't do this here.
Expand All @@ -969,6 +967,13 @@ static int sa1111_resume(struct platform_device *dev)
* First of all, wake up the chip.
*/
sa1111_wake(sachip);

/*
* Only lock for write ops. Also, sa1111_wake must be called with
* released spinlock!
*/
spin_lock_irqsave(&sachip->lock, flags);

sa1111_writel(0, sachip->base + SA1111_INTC + SA1111_INTEN0);
sa1111_writel(0, sachip->base + SA1111_INTC + SA1111_INTEN1);

Expand Down

0 comments on commit a26154b

Please sign in to comment.