Skip to content

Commit

Permalink
HID: wiimote: init EXT/MP during device detection
Browse files Browse the repository at this point in the history
We normally get EXT hotplug events or poll for MP hotplugging so we
don't need to force extension port initialization during device setup.
But for gen20 devices, we disable MP polling because MP is always
present. However, this prevents MP initialization during device setup
and users need to plug another extension to trigger EXT/MP detection.

Therefore, we now trigger EXT/MP detection during device setup
automatically. This also avoids slightly delayed extension detection
and provides sysfs child-devices prior to the "changed"-uevent during
device setup.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
David Herrmann authored and Jiri Kosina committed Jun 3, 2013
1 parent 0d57eb8 commit 77a7480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hid/hid-wiimote-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@ static void wiimote_init_worker(struct work_struct *work)
changed = true;
}

if (!wiimote_init_check(wdata))
if (changed || !wiimote_init_check(wdata))
wiimote_init_hotplug(wdata);

if (changed)
Expand Down

0 comments on commit 77a7480

Please sign in to comment.