CHROMEOS: HID: Fix logitech-dj: Allow incoming packets during probe().
authorAndrew de los Reyes <adlr@chromium.org>
Sat, 5 Jan 2013 19:41:09 +0000 (11:41 -0800)
committerChromeBot <chrome-bot@google.com>
Fri, 22 Mar 2013 02:09:08 +0000 (19:09 -0700)
commit0cf05e20fc67772ecd7f43e9e5e12f86629b58c7
treeac817514551ae3f14f36131c6749f7afc17d2b8a
parent5af43de2b2f4012b2f0cd7b5f58087734ad3a7be
CHROMEOS: HID: Fix logitech-dj: Allow incoming packets during probe().

Historically, logitech-dj communicated with the device during probe()
to query the list of devices attached. Later, a change was introduced
to hid-core that prevented incoming packets for a device during
probe(), as many drivers are unable to handle such input. That change
broke the device enumeration in logitech-dj, so commit
596264082f10dd4a56 was introduced to workaround that by waiting for
normal input before enumerating devices.

Now that drivers can opt-in to receive input during probe, this patch
changes logitech-dj to do that, so that it can successfully complete
enumeration of devices during probe().

BUG=chromium-os:39354
TEST=manually tested on Link

Signed-off-by: Andrew de los Reyes <adlr@chromium.org>
Change-Id: I2dca10a5c64f6c3e90ffb00547b47eaf94546eb6
Reviewed-on: https://gerrit.chromium.org/gerrit/46005
Reviewed-by: Yufeng Shen <miletus@chromium.org>
Commit-Queue: Andrew de los Reyes <adlr@chromium.org>
Tested-by: Andrew de los Reyes <adlr@chromium.org>
drivers/hid/hid-logitech-dj.c