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.
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html