X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=target%2Flinux%2Fxburst%2Ffiles-2.6.32%2Farch%2Fmips%2Fjz4740%2Fgpio.c;h=df5df5cd0b4d0cbc0fc8b0262360537cb1b880e0;hp=ccaa0602a95587c3e140b76f1c32571ba122b46c;hb=25cfb3fdffaced5635a4c898e4c577b5255d934e;hpb=7f4dac885c4f3fd27e8ac3c1c3684f3fb64410bf diff --git a/target/linux/xburst/files-2.6.32/arch/mips/jz4740/gpio.c b/target/linux/xburst/files-2.6.32/arch/mips/jz4740/gpio.c index ccaa0602a9..df5df5cd0b 100644 --- a/target/linux/xburst/files-2.6.32/arch/mips/jz4740/gpio.c +++ b/target/linux/xburst/files-2.6.32/arch/mips/jz4740/gpio.c @@ -446,6 +446,7 @@ int jz_gpio_suspend(void) gpio = chip->gpio_chip.base; chip->suspend_mask = readl(GPIO_TO_REG(gpio, JZ_REG_GPIO_MASK)); writel(~(chip->wakeup), GPIO_TO_REG(gpio, JZ_REG_GPIO_MASK_SET)); + writel(chip->wakeup, GPIO_TO_REG(gpio, JZ_REG_GPIO_MASK_CLEAR)); } chip = jz_gpio_chips; @@ -459,7 +460,10 @@ int jz_gpio_resume(void) int i; for (i = 0; i < ARRAY_SIZE(jz_gpio_chips); ++i, ++chip) { - writel(~(chip->suspend_mask), GPIO_TO_REG(chip->gpio_chip.base, JZ_REG_GPIO_MASK_CLEAR)); + writel(~(chip->suspend_mask), GPIO_TO_REG(chip->gpio_chip.base, + JZ_REG_GPIO_MASK_CLEAR)); + writel(chip->suspend_mask, GPIO_TO_REG(chip->gpio_chip.base, + JZ_REG_GPIO_MASK_SET)); } return 0;