]> git.baikalelectronics.ru Git - kernel.git/commit
HID: intel-ish-hid: Replace PCI_DEV_FLAGS_NO_D3 with pci_save_state
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Mon, 29 Jun 2020 04:16:46 +0000 (12:16 +0800)
committerJiri Kosina <jkosina@suse.cz>
Tue, 7 Jul 2020 10:18:47 +0000 (12:18 +0200)
commit0e6485cf5b91443cc4ae6b8f41f476629a130674
treebc3569ccf90c7066f94ee290635fcf8a62ce6a0d
parent48bef079d7f9eb32694b6f9eeb3f410a3c1fe59a
HID: intel-ish-hid: Replace PCI_DEV_FLAGS_NO_D3 with pci_save_state

PCI_DEV_FLAGS_NO_D3 should not be used outside of PCI core.

Instead, we can use pci_save_state() to hint PCI core that the device
should stay at D0 during suspend. By doing so, PCI core will let the
upstream bridges also stays at D0 so the entire hierarchy is in the
correct power state as PCI spec mandates.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.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