]> git.baikalelectronics.ru Git - kernel.git/commit
HID: intel-ish-hid: ipc: check the NO_D3 flag to distinguish resume paths
authorZhang Lixu <lixu.zhang@intel.com>
Thu, 8 Aug 2019 10:21:13 +0000 (18:21 +0800)
committerJiri Kosina <jkosina@suse.cz>
Mon, 19 Aug 2019 12:01:50 +0000 (14:01 +0200)
commit497474543444ae7bc8f9cc33aa80d6c0057e16f1
tree822b9b58669c7bfd280d5eb582bfac80fb95ddde
parent1364b37b8b0ebcb23d20d8b9fa63ba3a19d44180
HID: intel-ish-hid: ipc: check the NO_D3 flag to distinguish resume paths

The NO_D3 flag would be set if the ISH enter D0i3 in ish_suspend(),
The resume paths can be distinguished by checking the NO_D3 flag.
It's more reasonable than checking the FW status.

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.cz>
drivers/hid/intel-ish-hid/ipc/pci-ish.c