* [PATCH 1/1] ARM: pxa: fix pxa25x gpio wakeup setting
@ 2012-11-21 0:37 Andrea Adami
2012-11-21 5:14 ` Haojian Zhuang
0 siblings, 1 reply; 2+ messages in thread
From: Andrea Adami @ 2012-11-21 0:37 UTC (permalink / raw)
To: Eric Miao; +Cc: Russell King, Haojian Zhuang, linux-arm-kernel, linux-kernel
* Since 3.3 gpio wakeup is broken on pxa25x (tested on corgi and poodle).
* Use gpio_set_wake like done for pxa27x with commit id
* b95ace54a23e2f8ebb032744cebb17c9f43bf651
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
---
arch/arm/mach-pxa/pxa25x.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-pxa/pxa25x.c b/arch/arm/mach-pxa/pxa25x.c
index 3352b37..aeb913e 100644
--- a/arch/arm/mach-pxa/pxa25x.c
+++ b/arch/arm/mach-pxa/pxa25x.c
@@ -338,6 +338,10 @@ void __init pxa25x_map_io(void)
pxa25x_get_clk_frequency_khz(1);
}
+static struct pxa_gpio_platform_data pxa25x_gpio_info __initdata = {
+ .gpio_set_wake = gpio_set_wake,
+};
+
static struct platform_device *pxa25x_devices[] __initdata = {
&pxa25x_device_udc,
&pxa_device_pmu,
@@ -370,6 +374,7 @@ static int __init pxa25x_init(void)
register_syscore_ops(&pxa2xx_mfp_syscore_ops);
register_syscore_ops(&pxa2xx_clock_syscore_ops);
+ pxa_register_device(&pxa_device_gpio, &pxa25x_gpio_info);
ret = platform_add_devices(pxa25x_devices,
ARRAY_SIZE(pxa25x_devices));
if (ret)
--
1.7.8.6
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] ARM: pxa: fix pxa25x gpio wakeup setting
2012-11-21 0:37 [PATCH 1/1] ARM: pxa: fix pxa25x gpio wakeup setting Andrea Adami
@ 2012-11-21 5:14 ` Haojian Zhuang
0 siblings, 0 replies; 2+ messages in thread
From: Haojian Zhuang @ 2012-11-21 5:14 UTC (permalink / raw)
To: Andrea Adami; +Cc: Eric Miao, Russell King, linux-arm-kernel, linux-kernel
On Wed, Nov 21, 2012 at 8:37 AM, Andrea Adami <andrea.adami@gmail.com> wrote:
> * Since 3.3 gpio wakeup is broken on pxa25x (tested on corgi and poodle).
> * Use gpio_set_wake like done for pxa27x with commit id
> * b95ace54a23e2f8ebb032744cebb17c9f43bf651
>
> Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
> ---
> arch/arm/mach-pxa/pxa25x.c | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-pxa/pxa25x.c b/arch/arm/mach-pxa/pxa25x.c
> index 3352b37..aeb913e 100644
> --- a/arch/arm/mach-pxa/pxa25x.c
> +++ b/arch/arm/mach-pxa/pxa25x.c
> @@ -338,6 +338,10 @@ void __init pxa25x_map_io(void)
> pxa25x_get_clk_frequency_khz(1);
> }
>
> +static struct pxa_gpio_platform_data pxa25x_gpio_info __initdata = {
> + .gpio_set_wake = gpio_set_wake,
> +};
> +
> static struct platform_device *pxa25x_devices[] __initdata = {
> &pxa25x_device_udc,
> &pxa_device_pmu,
> @@ -370,6 +374,7 @@ static int __init pxa25x_init(void)
> register_syscore_ops(&pxa2xx_mfp_syscore_ops);
> register_syscore_ops(&pxa2xx_clock_syscore_ops);
>
> + pxa_register_device(&pxa_device_gpio, &pxa25x_gpio_info);
> ret = platform_add_devices(pxa25x_devices,
> ARRAY_SIZE(pxa25x_devices));
> if (ret)
> --
> 1.7.8.6
>
Acked & applied
Regards
Haojian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-11-21 5:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-21 0:37 [PATCH 1/1] ARM: pxa: fix pxa25x gpio wakeup setting Andrea Adami
2012-11-21 5:14 ` Haojian Zhuang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®