]> git.ipfire.org Git - thirdparty/linux.git/commit
HID: intel-ish-hid: ipc: Always schedule FW reset work on RESET_NOTIFY/ACK
authorZhang Lixu <lixu.zhang@intel.com>
Fri, 17 Oct 2025 02:22:16 +0000 (10:22 +0800)
committerJiri Kosina <jkosina@suse.com>
Fri, 17 Oct 2025 15:47:54 +0000 (17:47 +0200)
commit9e097dc9df8027a590dbca503d8b52e1a86024d7
tree63122d36951d1b99e96152390694e2c93fb7218c
parentbd1b9a8df598882c69403ee83ba2903b45f9d607
HID: intel-ish-hid: ipc: Always schedule FW reset work on RESET_NOTIFY/ACK

Both ISH firmware and driver can actively send MNG_RESET_NOTIFY to initiate
an FW reset handshake. Upon receiving this, the peer should reply with
MNG_RESET_NOTIFY_ACK. Therefore, the driver should schedule the FW reset
handshake work function when receiving either MNG_RESET_NOTIFY or
MNG_RESET_NOTIFY_ACK.

Previously, driver only scheduled the work function on MNG_RESET_NOTIFY.
This patch ensures the work function is scheduled on both messages, but
only replies with MNG_RESET_NOTIFY_ACK when receiving MNG_RESET_NOTIFY.

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