, 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
, 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
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
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
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
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
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
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
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
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(, )
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
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
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(, )
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
14 matches
Mail list logo