Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

i3c: mipi-i3c-hci-pci: Enable IBI while runtime suspended for Intel controllers

Intel LPSS I3C controllers can wake from runtime suspend to receive
in-band interrupts (IBIs), and they also implement the MIPI I3C HCI
Multi-Bus Instance capability. When multiple I3C bus instances share the
same PCI wakeup, the PCI parent must coordinate runtime PM so that all
instances suspend together and their mipi-i3c-hci runtime suspend
callbacks are invoked in a consistent manner.

Enable IBI-based wakeup by setting HCI_QUIRK_RPM_IBI_ALLOWED for the
intel-lpss-i3c platform device. Also set HCI_QUIRK_RPM_PARENT_MANAGED so
that the mipi-i3c-hci core driver expects runtime PM to be controlled by
the PCI parent rather than by individual instances. For all Intel HCI PCI
configurations, enable the corresponding control_instance_pm flag in the
PCI driver.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260306085338.62955-6-adrian.hunter@intel.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

authored by

Adrian Hunter and committed by
Alexandre Belloni
e7a71862 e813e7e3

+6 -1
+3 -1
drivers/i3c/master/mipi-i3c-hci/core.c
··· 1042 1042 MODULE_DEVICE_TABLE(acpi, i3c_hci_acpi_match); 1043 1043 1044 1044 static const struct platform_device_id i3c_hci_driver_ids[] = { 1045 - { .name = "intel-lpss-i3c", HCI_QUIRK_RPM_ALLOWED }, 1045 + { .name = "intel-lpss-i3c", HCI_QUIRK_RPM_ALLOWED | 1046 + HCI_QUIRK_RPM_IBI_ALLOWED | 1047 + HCI_QUIRK_RPM_PARENT_MANAGED }, 1046 1048 { /* sentinel */ } 1047 1049 }; 1048 1050 MODULE_DEVICE_TABLE(platform, i3c_hci_driver_ids);
+3
drivers/i3c/master/mipi-i3c-hci/mipi-i3c-hci-pci.c
··· 200 200 .id = {0, 1}, 201 201 .instance_offset = {0, 0x400}, 202 202 .instance_count = 2, 203 + .control_instance_pm = true, 203 204 }; 204 205 205 206 static const struct mipi_i3c_hci_pci_info intel_mi_2_info = { ··· 210 209 .id = {2, 3}, 211 210 .instance_offset = {0, 0x400}, 212 211 .instance_count = 2, 212 + .control_instance_pm = true, 213 213 }; 214 214 215 215 static const struct mipi_i3c_hci_pci_info intel_si_2_info = { ··· 220 218 .id = {2}, 221 219 .instance_offset = {0}, 222 220 .instance_count = 1, 221 + .control_instance_pm = true, 223 222 }; 224 223 225 224 static int mipi_i3c_hci_pci_find_instance(struct mipi_i3c_hci_pci *hci, struct device *dev)