lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 6 Mar 2014 06:05:13 +0000 From: Peter Chen <Peter.Chen@...escale.com> To: Jagdish Gedia <jvgediya@...il.com> CC: Alan Stern <stern@...land.harvard.edu>, "linux-usb@...r.kernel.org" <linux-usb@...r.kernel.org>, "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org> Subject: RE: USB remote wakeup through gpio interrupt > > 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists