lkml.org 
[lkml]   [2014]   [Mar]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: USB remote wakeup through gpio interrupt
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



\
 
 \ /
  Last update: 2014-03-06 17:22    [W:0.074 / U:0.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site