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)
commitfc19a57dd4834a939b5eef574c61cd4f81af6cf8
tree822b9b58669c7bfd280d5eb582bfac80fb95ddde
parent2db8edaa88c1208f7346c65041120081e2434d2a
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