The i2c-hid driver generally supports wakeup, bit it currently
doesn't report wakeup events to the PM subsystem. Change that.
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
 
        i2c_hid_dbg(ihid, "input: %*ph\n", ret_size, ihid->inbuf);
 
-       if (test_bit(I2C_HID_STARTED, &ihid->flags))
+       if (test_bit(I2C_HID_STARTED, &ihid->flags)) {
+               pm_wakeup_event(&ihid->client->dev, 0);
+
                hid_input_report(ihid->hid, HID_INPUT_REPORT, ihid->inbuf + 2,
                                ret_size - 2, 1);
+       }
 
        return;
 }