HID: wiimote: init EXT/MP during device detection
authorDavid Herrmann <dh.herrmann@gmail.com>
Sun, 26 May 2013 20:55:02 +0000 (22:55 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 3 Jun 2013 09:07:06 +0000 (11:07 +0200)
commit77a7480992844d506a62f866f0824aec429d7658
tree9dba0a40ec530b04128905913339df698cc0e94e
parent0d57eb8758c865a70dd05f7c6a857acd996167fa
HID: wiimote: init EXT/MP during device detection

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>
drivers/hid/hid-wiimote-core.c