linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Help writing a custom HID driver
@ 2014-11-06 18:33 Jose Diez
  2014-11-06 18:57 ` Benjamin Tissoires
  0 siblings, 1 reply; 7+ messages in thread
From: Jose Diez @ 2014-11-06 18:33 UTC (permalink / raw)
  To: linux-input

Hello linux-input,

I'm trying to write a custom HID driver. It works fine, and I can send 
reports just fine, but one of the requirements of this device is that I 
have to reply to reports with code 62 with another report with code 62, 
which resets a watchdog in the device.

This is my code so far: http://codepad.org/m4QiWhDt

The problem is in line 40. It seems like I'm not allowed to call 
hid_hw_output_report from the raw_event callback handler. I've tried 
surrounding the call with spin_locks, but I still get the "scheduling 
while atomic" error.

I'm not sure how to approach this - can someone help? It would be much 
appreciated. Thanks.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-11-07 17:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-06 18:33 Help writing a custom HID driver Jose Diez
2014-11-06 18:57 ` Benjamin Tissoires
2014-11-06 19:28   ` Jose Diez
2014-11-06 20:18     ` Jose Diez
2014-11-06 20:22       ` Benjamin Tissoires
2014-11-06 20:56         ` Jose Diez
2014-11-07 17:18           ` Jose Diez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).