Re: Check if usb device is suspended

2014-03-21 Thread Jagdish Gedia
, Mar 13, 2014 at 7:50 PM, Alan Stern wrote: > On Thu, 13 Mar 2014, Jagdish Gedia wrote: > >> Hi, >> I want to check in my driver if usb device is suspended or not? > > Why do you need to check? Your driver gets told every time the device > suspends and every time it re

Re: Check if usb device is suspended

2014-03-21 Thread Jagdish Gedia
, Mar 13, 2014 at 7:50 PM, Alan Stern st...@rowland.harvard.edu wrote: On Thu, 13 Mar 2014, Jagdish Gedia wrote: Hi, I want to check in my driver if usb device is suspended or not? Why do you need to check? Your driver gets told every time the device suspends and every time it resumes

Check if usb device is suspended

2014-03-13 Thread Jagdish Gedia
Hi, I want to check in my driver if usb device is suspended or not? currently i am doing it like if(udev->state==USB_STATE_SUSPENDED) Is this the proper way? Is this enough? Thanks, Jagdish Gediya -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of

Check if usb device is suspended

2014-03-13 Thread Jagdish Gedia
Hi, I want to check in my driver if usb device is suspended or not? currently i am doing it like if(udev-state==USB_STATE_SUSPENDED) Is this the proper way? Is this enough? Thanks, Jagdish Gediya -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a

Re: USB remote wakeup through gpio interrupt

2014-03-06 Thread Jagdish Gedia
ediya On Thu, Mar 6, 2014 at 2:53 PM, 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). > 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

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

Re: USB remote wakeup through gpio interrupt

2014-03-06 Thread Jagdish Gedia
at 2:53 PM, Jagdish Gedia jvged...@gmail.com 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

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

Re: Delivery Status Notification (Failure)

2014-03-05 Thread Jagdish Gedia
Hi Alan, Thanks for you informative reply. I will try your suggestion. yes, i will not get more than one wakeup per second. I have tried below things. My usb device is using the cdc-acm.c driver. inside cdc-acm.c file, static struct usb_device *usb_device; static int acm_probe(, )

USB remote wakeup through gpio interrupt

2014-03-05 Thread Jagdish Gedia
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 gpio when it needs

USB remote wakeup through gpio interrupt

2014-03-05 Thread Jagdish Gedia
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 gpio when it needs

Re: Delivery Status Notification (Failure)

2014-03-05 Thread Jagdish Gedia
Hi Alan, Thanks for you informative reply. I will try your suggestion. yes, i will not get more than one wakeup per second. I have tried below things. My usb device is using the cdc-acm.c driver. inside cdc-acm.c file, static struct usb_device *usb_device; static int acm_probe(, )

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