提交 77a74809 编写于 作者: D David Herrmann 提交者: Jiri Kosina

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: NDavid Herrmann <dh.herrmann@gmail.com>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 0d57eb87
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册