Files
android_kernel_xiaomi_sm8450/drivers/pci
Jon Derrick 93c9fce7d5 PCI: vmd: Update VMD PM to correctly use generic PCI PM
The pci_save_state() call in vmd_suspend() can be performed by
pci_pm_suspend_irq(). This also allows VMD to benefit from the call into
pci_prepare_to_sleep().

The pci_restore_state() call in vmd_resume() was restoring state after
pci_pm_resume()::pci_restore_standard_config() had already restored state.
It's also been suspected that the config state should have been restored
before re-requesting IRQs instead of afterwards.

Remove the pci_save_state()/pci_restore_state() calls in
vmd_suspend()/vmd_resume() to allow proper flow through generic PCI core
Power Management code.

Link: https://lore.kernel.org/r/20200806210017.5654-1-jonathan.derrick@intel.com
Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Kai-Heng Feng <kai.heng.feng@canonical.com>
Cc: You-Sheng Yang <vicamo.yang@canonical.com>
2020-10-21 09:57:42 -05:00
..
2020-08-05 18:23:14 -05:00
2020-08-05 18:24:16 -05:00
2020-08-05 18:24:22 -05:00
2018-03-19 14:20:43 -05:00
2020-07-29 14:25:18 -05:00
2019-11-28 08:54:55 -06:00
2019-07-09 07:24:53 -05:00
2020-08-05 18:24:22 -05:00
2020-08-05 18:24:17 -05:00
2020-08-05 18:23:14 -05:00
2020-04-02 14:26:38 -05:00
2020-08-05 18:24:21 -05:00
2020-08-05 18:24:21 -05:00
2020-01-29 17:00:02 -06:00
2020-08-05 18:24:22 -05:00
2018-03-19 14:20:43 -05:00
2020-08-05 18:23:14 -05:00