HID: i2c-hid: Do panel follower work on the system_wq
authorDouglas Anderson <dianders@chromium.org>
Thu, 27 Jul 2023 17:16:37 +0000 (10:16 -0700)
committerDouglas Anderson <dianders@chromium.org>
Tue, 1 Aug 2023 14:42:00 +0000 (07:42 -0700)
commit76edfcf430cc2fa1abcfb910a2643eed102a1590
tree423ef67297812a4be21e4a6e2668192b10ee0154
parent96a37bfd232ae912648c73cd2dc29c13f1c7776a
HID: i2c-hid: Do panel follower work on the system_wq

Turning on an i2c-hid device can be a slow process. This is why
i2c-hid devices use PROBE_PREFER_ASYNCHRONOUS. Unfortunately, when
we're a panel follower the i2c-hid power up sequence now blocks the
power on of the panel. Let's fix that by scheduling the work on the
system_wq.

Reviewed-by: Maxime Ripard <mripard@kernel.org>
Reviewed-by: Benjamin Tissoires <bentiss@kernel.org>
Acked-by: Benjamin Tissoires <bentiss@kernel.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230727101636.v4.10.I962bb462ede779005341c49320740ed95810021d@changeid
drivers/hid/i2c-hid/i2c-hid-core.c