summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJustin Yeh <justin.yeh@mediatek.com>2026-09-08 09:38:40 +0800
committerJiri Kosina <jkosina@suse.com>2026-09-11 17:37:57 +0200
commit59fc35a1edbfa5405122d749cf8843da131fd796 (patch)
tree8bc9a2ba731a1dcb689173c138a02d34823834a5 /tools/perf/scripts/python
parent986c24e0fe44f844b44d365b71ce831947f50298 (diff)
HID: i2c-hid: Unfollow the panel on shutdown
i2c_hid_core_shutdown() sends SET_POWER(SLEEP) even for panel followers, but nothing in device_shutdown() guarantees whether the panel, and hence our own power, is still on by the time we get there. Do what i2c_hid_core_remove() does and just unfollow the panel. drm_panel_remove_follower() calls panel_unpreparing() only while the panel is still prepared, which powers us down properly; if it is already unprepared no transfer is attempted at all. On MT8196 the panel is unprepared long before us, so this also drops the ~2s i2c bus timeout from every reboot. Fixes: 96a37bfd232a ("HID: i2c-hid: Support being a panel follower") Suggested-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Justin Yeh <justin.yeh@mediatek.com> Reviewed-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions