lkml.org 
[lkml]   [2014]   [Mar]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: USB remote wakeup through gpio interrupt
Date



>
> 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 this interrupt handler using pm_runtime_put.

> 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 functionality
> as remote wakeup is not working properly.
>
> will pm_runtime_put suspend the device immidiately or it will not suspend
> the device till it is in use?
>

It should suspend device immediately if you have not set any timeout value
for runtime. You call pm_runtime_put, it means you want to stop using device,
the host will stop sending SOF after it finishes suspending bus routine.

Peter




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