bus: mhi: pci_generic: Use generic PCI power management
authorLoic Poulain <loic.poulain@linaro.org>
Fri, 5 Mar 2021 19:16:47 +0000 (20:16 +0100)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Wed, 10 Mar 2021 14:41:22 +0000 (20:11 +0530)
commite89878aa4b79a834d5c90abb96efcd64396c2163
treefb7d8eb22da0eec992d6c3be58cbf707beb49136
parente3e5e6508fc1c0e98a5a264853713dd30a60e5e5
bus: mhi: pci_generic: Use generic PCI power management

The PCI core can take care of proper PCI suspend/resume operations, but
this is discarded when the driver saves PCI state by its own. This
currently prevents the PCI core to enable PME (for modem initiated
D3 exit) which is requested for proper runtime pm support.

This change deletes explicit PCI state-saving and state-set from
suspend callback, letting the PCI doing the appropriate work.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/1614971808-22156-5-git-send-email-loic.poulain@linaro.org
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/bus/mhi/pci_generic.c