Re: USB remote wakeup through gpio interrupt
From: Alan Stern
Date: Thu Mar 06 2014 - 10:45:01 EST
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, ausosuspend is getting
> disable for my device. I want autosuspend to be enabled for usb device
> forever. Do pm_request_resume function causes this behavior?
No. The various versions of pm_runtime_get will cause it, though, if
they aren't balanced by some form of pm_runtime_put.
Alan Stern
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/