Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256684
b: refs/heads/master
c: 6161715
h: refs/heads/master
v: v3
  • Loading branch information
Shawn Guo authored and Grant Likely committed Jun 7, 2011
1 parent 72c53fe commit 89e9db4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 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: 06f88a8ae9085e555baf81edbf967764d87dc12f
refs/heads/master: 6161715e3f1adecae9e7c160930add4040fa10e9
18 changes: 4 additions & 14 deletions trunk/drivers/gpio/gpio-mxs.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ struct mxs_gpio_port {
void __iomem *base;
int id;
int irq;
int irq_high;
int virtual_irq_start;
struct bgpio_chip bgc;
};
Expand Down Expand Up @@ -174,21 +173,12 @@ static void mxs_gpio_irq_handler(u32 irq, struct irq_desc *desc)
*/
static int mxs_gpio_set_wake_irq(struct irq_data *d, unsigned int enable)
{
u32 gpio = irq_to_gpio(d->irq);
u32 gpio_idx = gpio & 0x1f;
struct mxs_gpio_port *port = irq_data_get_irq_chip_data(d);

if (enable) {
if (port->irq_high && (gpio_idx >= 16))
enable_irq_wake(port->irq_high);
else
enable_irq_wake(port->irq);
} else {
if (port->irq_high && (gpio_idx >= 16))
disable_irq_wake(port->irq_high);
else
disable_irq_wake(port->irq);
}
if (enable)
enable_irq_wake(port->irq);
else
disable_irq_wake(port->irq);

return 0;
}
Expand Down

0 comments on commit 89e9db4

Please sign in to comment.