Commit 8221ecd4 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki Committed by Bjorn Helgaas

PCI/PM: Drop the runtime_d3cold device flag

The runtime_d3cold flag is not needed any more, so drop it.

Link: https://lore.kernel.org/r/8077784.T7Z3S40VBb@kreacherSigned-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Reviewed-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent 730643d3
...@@ -1342,8 +1342,6 @@ static int pci_pm_runtime_resume(struct device *dev) ...@@ -1342,8 +1342,6 @@ static int pci_pm_runtime_resume(struct device *dev)
if (pm && pm->runtime_resume) if (pm && pm->runtime_resume)
error = pm->runtime_resume(dev); error = pm->runtime_resume(dev);
pci_dev->runtime_d3cold = false;
return error; return error;
} }
......
...@@ -2703,8 +2703,6 @@ int pci_finish_runtime_suspend(struct pci_dev *dev) ...@@ -2703,8 +2703,6 @@ int pci_finish_runtime_suspend(struct pci_dev *dev)
if (target_state == PCI_POWER_ERROR) if (target_state == PCI_POWER_ERROR)
return -EIO; return -EIO;
dev->runtime_d3cold = target_state == PCI_D3cold;
/* /*
* There are systems (for example, Intel mobile chips since Coffee * There are systems (for example, Intel mobile chips since Coffee
* Lake) where the power drawn while suspended can be significantly * Lake) where the power drawn while suspended can be significantly
...@@ -2722,7 +2720,6 @@ int pci_finish_runtime_suspend(struct pci_dev *dev) ...@@ -2722,7 +2720,6 @@ int pci_finish_runtime_suspend(struct pci_dev *dev)
if (error) { if (error) {
pci_enable_wake(dev, target_state, false); pci_enable_wake(dev, target_state, false);
pci_restore_ptm_state(dev); pci_restore_ptm_state(dev);
dev->runtime_d3cold = false;
} }
return error; return error;
......
...@@ -379,10 +379,6 @@ struct pci_dev { ...@@ -379,10 +379,6 @@ struct pci_dev {
unsigned int mmio_always_on:1; /* Disallow turning off io/mem unsigned int mmio_always_on:1; /* Disallow turning off io/mem
decoding during BAR sizing */ decoding during BAR sizing */
unsigned int wakeup_prepared:1; unsigned int wakeup_prepared:1;
unsigned int runtime_d3cold:1; /* Whether go through runtime
D3cold, not set for devices
powered on/off by the
corresponding bridge */
unsigned int skip_bus_pm:1; /* Internal: Skip bus-level PM */ unsigned int skip_bus_pm:1; /* Internal: Skip bus-level PM */
unsigned int ignore_hotplug:1; /* Ignore hotplug events */ unsigned int ignore_hotplug:1; /* Ignore hotplug events */
unsigned int hotplug_user_indicators:1; /* SlotCtl indicators unsigned int hotplug_user_indicators:1; /* SlotCtl indicators
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment