Message ID | alpine.LNX.2.00.1208141250020.12490@pobox.suse.cz (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Tuesday 14 August 2012 12:54:00 Jiri Kosina wrote: > Offloading the processing to workqueue might actually work and make sense, > but I will have to think a little bit more about all the consequences it'd > have throughout the rest of the code. How would alt-sysrq be handled? Reagrds Oliver -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 60ea284..5b74e78 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -996,7 +996,8 @@ static void hid_process_event(struct hid_device *hid, struct hid_field *field, struct hid_driver *hdrv = hid->driver; int ret; - hid_dump_input(hid, usage, value); + if (!list_empty(&hid->debug_list)) + hid_dump_input(hid, usage, value); if (hdrv && hdrv->event && hid_match_usage(hid, usage)) { ret = hdrv->event(hid, field, usage, value);