diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2013-05-26 16:55:02 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-06-03 05:07:06 -0400 |
commit | 77a7480992844d506a62f866f0824aec429d7658 (patch) | |
tree | 9dba0a40ec530b04128905913339df698cc0e94e /drivers/hid/hid-wiimote-core.c | |
parent | 0d57eb8758c865a70dd05f7c6a857acd996167fa (diff) |
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>
Diffstat (limited to 'drivers/hid/hid-wiimote-core.c')
-rw-r--r-- | drivers/hid/hid-wiimote-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-wiimote-core.c b/drivers/hid/hid-wiimote-core.c index 3e696562c944..ea00030defd6 100644 --- a/drivers/hid/hid-wiimote-core.c +++ b/drivers/hid/hid-wiimote-core.c | |||
@@ -1188,7 +1188,7 @@ static void wiimote_init_worker(struct work_struct *work) | |||
1188 | changed = true; | 1188 | changed = true; |
1189 | } | 1189 | } |
1190 | 1190 | ||
1191 | if (!wiimote_init_check(wdata)) | 1191 | if (changed || !wiimote_init_check(wdata)) |
1192 | wiimote_init_hotplug(wdata); | 1192 | wiimote_init_hotplug(wdata); |
1193 | 1193 | ||
1194 | if (changed) | 1194 | if (changed) |