2008-01-09 16:40:13

by Dmitry Baryshkov

[permalink] [raw]
Subject: [PATCH] pda_power: add device_init_wakeup

Add device_init_wakeup to init wakeup.

Signed-off-by: Dmitry Baryshkov <[email protected]>

diff --git a/drivers/power/pda_power.c b/drivers/power/pda_power.c
index d98622f..28360e8 100644
--- a/drivers/power/pda_power.c
+++ b/drivers/power/pda_power.c
@@ -207,6 +207,8 @@ static int pda_power_probe(struct platform_device *pdev)
}
}

+ device_init_wakeup(&pdev->dev, 1);
+
return 0;

usb_irq_failed:
--
With best wishes
Dmitry


2008-01-12 22:50:35

by Dmitry Baryshkov

[permalink] [raw]
Subject: Re: [PATCH] pda_power: add device_init_wakeup

Hi,

Please apply this patch. Otherwise pda_power can't generate wakeup
events. I forgot this in the initial pda_power suspend/resume patch.

Add device_init_wakeup to init wakeup.

Signed-off-by: Dmitry Baryshkov <[email protected]>

diff --git a/drivers/power/pda_power.c b/drivers/power/pda_power.c
index d98622f..28360e8 100644
--- a/drivers/power/pda_power.c
+++ b/drivers/power/pda_power.c
@@ -207,6 +207,8 @@ static int pda_power_probe(struct platform_device *pdev)
}
}

+ device_init_wakeup(&pdev->dev, 1);
+
return 0;

usb_irq_failed:


--
With best wishes
Dmitry

2008-01-13 00:07:56

by Anton Vorontsov

[permalink] [raw]
Subject: Re: [PATCH] pda_power: add device_init_wakeup

On Sun, Jan 13, 2008 at 01:50:16AM +0300, Dmitry Baryshkov wrote:
> Hi,
>
> Please apply this patch. Otherwise pda_power can't generate wakeup
> events. I forgot this in the initial pda_power suspend/resume patch.
>
> Add device_init_wakeup to init wakeup.

Thanks, folded into "pda_power: add suspend/resume support" patch.

FYI, I got it first time, just didn't have time to process. ;-)

> Signed-off-by: Dmitry Baryshkov <[email protected]>
>
> diff --git a/drivers/power/pda_power.c b/drivers/power/pda_power.c
> index d98622f..28360e8 100644
> --- a/drivers/power/pda_power.c
> +++ b/drivers/power/pda_power.c
> @@ -207,6 +207,8 @@ static int pda_power_probe(struct platform_device *pdev)
> }
> }
>
> + device_init_wakeup(&pdev->dev, 1);
> +
> return 0;
>
> usb_irq_failed:

--
Anton Vorontsov
email: [email protected]
backup email: [email protected]
irc://irc.freenode.net/bd2

2008-01-13 00:14:32

by Dmitry Baryshkov

[permalink] [raw]
Subject: Re: [PATCH] pda_power: add device_init_wakeup

Hi,

2008/1/13, Anton Vorontsov <[email protected]>:
> On Sun, Jan 13, 2008 at 01:50:16AM +0300, Dmitry Baryshkov wrote:
> > Hi,
> >
> > Please apply this patch. Otherwise pda_power can't generate wakeup
> > events. I forgot this in the initial pda_power suspend/resume patch.
> >
> > Add device_init_wakeup to init wakeup.
>
> Thanks, folded into "pda_power: add suspend/resume support" patch.
>
> FYI, I got it first time, just didn't have time to process. ;-)


Thank you :) Sorry for pinging you too fast.

--
With best wishes
Dmitry