Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307681
b: refs/heads/master
c: 1b12870
h: refs/heads/master
i:
  307679: a41e08a
v: v3
  • Loading branch information
Tarun Kanti DebBarma authored and Kevin Hilman committed May 12, 2012
1 parent d5baf7f commit b4cfc01
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 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: 4e962e8998cc6cb5e58beae5feb6a65cb1a27f26
refs/heads/master: 1b1287032df3a69d3ef9a486b444f4ffcca50d01
13 changes: 8 additions & 5 deletions trunk/drivers/gpio/gpio-omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1157,6 +1157,9 @@ static int omap_gpio_runtime_suspend(struct device *dev)

spin_lock_irqsave(&bank->lock, flags);

if (!bank->enabled_non_wakeup_gpios)
goto update_gpio_context_count;

/*
* Only edges can generate a wakeup event to the PRCM.
*
Expand Down Expand Up @@ -1232,11 +1235,6 @@ static int omap_gpio_runtime_resume(struct device *dev)
__raw_writel(bank->context.risingdetect,
bank->base + bank->regs->risingdetect);

if (!bank->workaround_enabled) {
spin_unlock_irqrestore(&bank->lock, flags);
return 0;
}

if (bank->get_context_loss_count) {
context_lost_cnt_after =
bank->get_context_loss_count(bank->dev);
Expand All @@ -1249,6 +1247,11 @@ static int omap_gpio_runtime_resume(struct device *dev)
}
}

if (!bank->workaround_enabled) {
spin_unlock_irqrestore(&bank->lock, flags);
return 0;
}

__raw_writel(bank->context.fallingdetect,
bank->base + bank->regs->fallingdetect);
__raw_writel(bank->context.risingdetect,
Expand Down

0 comments on commit b4cfc01

Please sign in to comment.