diff options
author | Zhou Jingyu <b02241@shlinux1.ap.freescale.net> | 2009-12-21 13:15:41 +0800 |
---|---|---|
committer | David Ungar <david.ungar@timesys.com> | 2010-04-19 17:03:45 -0400 |
commit | ec99286eb6772bff9a4b8069d7782e843de60ca4 (patch) | |
tree | bdb01d1e0c97a1fbb7a6101d8eb3e9e0b6926bad | |
parent | dcd70ef1efb94623036422d054a8bd0dc988ae1f (diff) |
ENGR00119305 imx23: fix ethernet standby issue2.6.31-mx25maxpdk-200912210515
fix can not goto standby when using ethernet
Signed-off-by: Zhou Jingyu <Jingyu.Zhou@freescale.com>
-rw-r--r-- | arch/arm/plat-stmp3xxx/pinmux.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/plat-stmp3xxx/pinmux.c b/arch/arm/plat-stmp3xxx/pinmux.c index 9dbf9dcc787e..0bfdcb21a91c 100644 --- a/arch/arm/plat-stmp3xxx/pinmux.c +++ b/arch/arm/plat-stmp3xxx/pinmux.c @@ -429,6 +429,16 @@ static void stmp3xxx_pin_unmask_irq(unsigned irq) stmp3xxx_setl(1 << gpio, pm->pin2irq); } +static void stmp3xxx_pin_disable_irq(unsigned irq) +{ + struct stmp3xxx_pinmux_bank *pm; + unsigned gpio; + + stmp3xxx_irq_to_gpio(irq, &pm, &gpio); + stmp3xxx_clearl(1 << gpio, pm->irqen); + stmp3xxx_clearl(1 << gpio, pm->pin2irq); +} + static inline struct stmp3xxx_pinmux_bank *to_pinmux_bank(struct gpio_chip *chip) { @@ -510,6 +520,7 @@ static struct irq_chip gpio_irq_chip = { .ack = stmp3xxx_pin_ack_irq, .mask = stmp3xxx_pin_mask_irq, .unmask = stmp3xxx_pin_unmask_irq, + .disable = stmp3xxx_pin_disable_irq, .set_type = stmp3xxx_set_irqtype, }; |