]> www.infradead.org Git - users/dwmw2/linux.git/commit
HID: intel-ish-hid: Send clock sync message immediately after reset
authorZhang Lixu <lixu.zhang@intel.com>
Wed, 22 Jan 2025 01:29:01 +0000 (09:29 +0800)
committerJiri Kosina <jkosina@suse.com>
Mon, 3 Feb 2025 09:53:12 +0000 (10:53 +0100)
commit7e0d1cff12b895f44f4ddc8cf50311bc1f775201
treeb09274d2b93231c65655ceed89981478d54a4f1f
parent4b54ae69197b9f416baa0fceadff7e89075f8454
HID: intel-ish-hid: Send clock sync message immediately after reset

The ISH driver performs a clock sync with the firmware once at system
startup and then every 20 seconds. If a firmware reset occurs right
after a clock sync, the driver would wait 20 seconds before performing
another clock sync with the firmware. This is particularly problematic
with the introduction of the "load firmware from host" feature, where
the driver performs a clock sync with the bootloader and then has to
wait 20 seconds before syncing with the main firmware.

This patch clears prev_sync immediately upon receiving an IPC reset,
so that the main firmware and driver will perform a clock sync
immediately after completing the IPC handshake.

Signed-off-by: Zhang Lixu <lixu.zhang@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/intel-ish-hid/ipc/ipc.c
drivers/hid/intel-ish-hid/ishtp/ishtp-dev.h