]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "net: wwan: iosm: Keep device at D0 for s2idle case"
authorM Chetan Kumar <m.chetan.kumar@linux.intel.com>
Tue, 4 Jan 2022 15:02:13 +0000 (20:32 +0530)
committerJakub Kicinski <kuba@kernel.org>
Wed, 5 Jan 2022 02:15:17 +0000 (18:15 -0800)
commit29d1ad761d543b0b1af833ee56409b524aa9c73c
treea129125ffb7290904da53e37066ce86dc933e54f
parenta35807cd4227ec4b02fce5e9c6099477eda2ae6b
Revert "net: wwan: iosm: Keep device at D0 for s2idle case"

Depending on BIOS configuration IOSM driver exchanges
protocol required for putting device into D3L2 or D3L1.2.

ipc_pcie_suspend_s2idle() is implemented to put device to D3L1.2.

This patch forces PCI core know this device should stay at D0.
- pci_save_state()is expensive since it does a lot of slow PCI
config reads.

The reported issue is not observed on x86 platform. The supurios
wake on AMD platform needs to be futher debugged with orignal patch
submitter [1]. Also the impact of adding pci_save_state() needs to be
assessed by testing it on other platforms.

This reverts commit 88c4d32acd71("net: wwan: iosm: Keep device
at D0 for s2idle case").

[1] https://lore.kernel.org/all/20211224081914.345292-2-kai.heng.feng@canonical.com/

Signed-off-by: M Chetan Kumar <m.chetan.kumar@linux.intel.com>
Link: https://lore.kernel.org/r/20220104150213.1894-1-m.chetan.kumar@linux.intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/wwan/iosm/iosm_ipc_pcie.c