Comment 7 for bug 1269600

Revision history for this message
Gerrit Addiks (addiks) wrote :

b1a1442a23776756b254b69786848a94d92445ba is the first bad commit
commit b1a1442a23776756b254b69786848a94d92445ba
Author: Jiri Kosina <email address hidden>
Date: Mon Jun 3 11:27:48 2013 +0200

    HID: core: fix reporting of raw events

    hdrw->raw event can return three different return value types:

    - ret < 0 indicates that the hdrv driver found an error while parsing
    - ret == 0 indicates no error has been encountered, and the driver has
               processed the report
    - ret > 0 indicates that there was no parsing error, and the driver hasn't
      processed the event.

    Calling hid_report_raw_event() has to be called appropriately so that it
    reflects what has been done by ->raw_event() callback, otherwise we might
    updates of the in-kernel structure are lost upon arrival of the report, which
    is wrong.

    Reported-and-tested-by: Srinivas Pandruvada <email address hidden>
    Reported-and-tested-by: Daniel Leung <email address hidden>
    Signed-off-by: Jiri Kosina <email address hidden>

:040000 040000 b61567a56058c05fb38864f834625b7910655476 7820cb9b91fb4d848a04b805d28da05c3ac8513b M drivers