HID: intel-ish-hid: ipc: check FW status to distinguish ISH resume paths
authorEven Xu <even.xu@intel.com>
Fri, 3 Feb 2017 06:24:53 +0000 (14:24 +0800)
committerJiri Kosina <jkosina@suse.cz>
Wed, 8 Feb 2017 03:11:57 +0000 (12:11 +0900)
commit291e9e3f6931eda50be839500c15b1135146aaf6
treed214c5c7632d3d35a8d9fdbd7f124255e82f797d
parent5299a92a3b98b91b7230662b8b9b6c64bcf8cae6
HID: intel-ish-hid: ipc: check FW status to distinguish ISH resume paths

For ISH resume, there are two paths, they need different way to handle: one
where ISH is not powered off, in that case a simple resume message is enough,
in other case we need a reset sequence.

We can use ISH FW status to distinguish those two cases and handle them
properly.

Signed-off-by: Even Xu <even.xu@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/intel-ish-hid/ipc/hw-ish-regs.h
drivers/hid/intel-ish-hid/ipc/hw-ish.h
drivers/hid/intel-ish-hid/ipc/pci-ish.c