Re: USB remote wakeup through gpio interrupt

2014-03-06 Thread Alan Stern
On Thu, 6 Mar 2014, Jagdish Gedia wrote: > Hi Alan, > > As you have told, i have executed pm_request_resume() function from my > interrupt handler, and it is waking up my USB device. I have > implemented all this functionality in class driver(cdc-acm.c). > but what is happening is after 2-3 times

RE: USB remote wakeup through gpio interrupt

2014-03-06 Thread Peter Chen
> > Hi Peter, > > My usb device is not capable of giving interrupt when it finishes using > usb. So i dont have any idea where can i call pm_runtime_put for my usb > device? > > the other thing is that, earlier you have told, waking up usb device > through interrupt is same as writing "on" to

Re: USB remote wakeup through gpio interrupt

2014-03-06 Thread Jagdish Gedia
Hi Peter, My usb device is not capable of giving interrupt when it finishes using usb. So i dont have any idea where can i call pm_runtime_put for my usb device? the other thing is that, earlier you have told, waking up usb device through interrupt is same as writing "on" to ../power/control , bu

Re: USB remote wakeup through gpio interrupt

2014-03-06 Thread Jagdish Gedia
Hi Alan, As you have told, i have executed pm_request_resume() function from my interrupt handler, and it is waking up my USB device. I have implemented all this functionality in class driver(cdc-acm.c). but what is happening is after 2-3 times, ausosuspend is getting disable for my device. I want

RE: USB remote wakeup through gpio interrupt

2014-03-05 Thread Peter Chen
> > Hi Peter, > > Thanks for your reply. > > I can use pm_runtime_get in interrupt handler, but i am not getting your > idea of using pm_runtime_put in interrupt handler? > After your device finishes using usb, it may need to toggle gpio to trigger interrupt, and you can suspend usb at thi

Re: USB remote wakeup through gpio interrupt

2014-03-05 Thread Jagdish Gedia
Hi Peter, Thanks for your reply. I can use pm_runtime_get in interrupt handler, but i am not getting your idea of using pm_runtime_put in interrupt handler? My device is usb telephony modem, which will give interrupt through gpio when call comes. so at that time i want to wakeup the usb function

RE: USB remote wakeup through gpio interrupt

2014-03-05 Thread Peter Chen
> > > Hi, > > There is some inconsistency in remote wakeup functionality in my > > custom board. so I want to wakeup the runtime suspended USB host > > through interrupt. My USB device is connected to the board through USB > > interface and some gpios. device will give interrupt on processor gpi

Re: USB remote wakeup through gpio interrupt

2014-03-05 Thread Alan Stern
On Wed, 5 Mar 2014, Jagdish Gedia wrote: > Hi, > There is some inconsistency in remote wakeup functionality in my > custom board. so I want to wakeup the runtime suspended USB host > through interrupt. My USB device is connected to the board through USB > interface and some gpios. device will give