diff options
| author | Adrian Hunter <adrian.hunter@intel.com> | 2026-01-23 09:33:25 +0300 |
|---|---|---|
| committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2026-01-31 02:02:24 +0300 |
| commit | 4280197d154cae1d1d5acb54484da26da04eac32 (patch) | |
| tree | dc8b700666fff99494bd078d12bfa8a2082c17bc | |
| parent | c3357bdd9be9cd9e34e46fe100e1d425503d4acf (diff) | |
| download | linux-4280197d154cae1d1d5acb54484da26da04eac32.tar.xz | |
i3c: mipi-i3c-hci-pci: Add System Suspend support
Assign the driver PM operations pointer, which is necessary for the PCI
subsystem to put the device into a low power state. Refer to
pci_pm_suspend_noirq() which bails out if the pointer is NULL, before
it has the opportunity to call pci_prepare_to_sleep().
No other actions are necessary as the mipi-i3c-hci driver takes care of
controller state.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260123063325.8210-4-adrian.hunter@intel.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
| -rw-r--r-- | drivers/i3c/master/mipi-i3c-hci/mipi-i3c-hci-pci.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/i3c/master/mipi-i3c-hci/mipi-i3c-hci-pci.c b/drivers/i3c/master/mipi-i3c-hci/mipi-i3c-hci-pci.c index 1b38771667e5..0f05a15c14c7 100644 --- a/drivers/i3c/master/mipi-i3c-hci/mipi-i3c-hci-pci.c +++ b/drivers/i3c/master/mipi-i3c-hci/mipi-i3c-hci-pci.c @@ -320,6 +320,10 @@ static void mipi_i3c_hci_pci_remove(struct pci_dev *pci) mfd_remove_devices(&pci->dev); } +/* PM ops must exist for PCI to put a device to a low power state */ +static const struct dev_pm_ops mipi_i3c_hci_pci_pm_ops = { +}; + static const struct pci_device_id mipi_i3c_hci_pci_devices[] = { /* Wildcat Lake-U */ { PCI_VDEVICE(INTEL, 0x4d7c), (kernel_ulong_t)&intel_mi_1_info}, @@ -342,6 +346,9 @@ static struct pci_driver mipi_i3c_hci_pci_driver = { .id_table = mipi_i3c_hci_pci_devices, .probe = mipi_i3c_hci_pci_probe, .remove = mipi_i3c_hci_pci_remove, + .driver = { + .pm = pm_ptr(&mipi_i3c_hci_pci_pm_ops) + }, }; module_pci_driver(mipi_i3c_hci_pci_driver); |
