Skip to content

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

Adrian Hunter linux-i3c linux-pm lkml 5 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest5 patches 3 repliesApplied
  2. v45 patches 0 repliesSuperseded
  3. v35 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v26 patches9 repliesSuperseded
v17 patches18 repliesSuperseded

Changes in v5 from the cover letter

	Re-base on top of v7.0 fixes series:
		https://lore.kernel.org/linux-i3c/[email protected]/T

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/5i3c: mipi-i3c-hci-pci: Set d3hot_delay to 0 for Intel controllersdrivers/i3c/master/mipi-i3c-hci/mipi-i3c-hci-pci.c+1 -00 replies
2/5i3c: mipi-i3c-hci: Add quirk to allow IBI while runtime suspendeddrivers/i3c/master/mipi-i3c-hci/core.c drivers/i3c/master/mipi-i3c-hci/hci.h+4 -00 replies
3/5i3c: mipi-i3c-hci: Allow parent to manage runtime PMdrivers/i3c/master/mipi-i3c-hci/core.c drivers/i3c/master/mipi-i3c-hci/hci.h+30 -40 replies
4/5i3c: mipi-i3c-hci-pci: Add optional ability to manage child runtime PMdrivers/i3c/master/mipi-i3c-hci/mipi-i3c-hci-pci.c+131 -00 replies
5/5i3c: mipi-i3c-hci-pci: Enable IBI while runtime suspended for Intel controllersdrivers/i3c/master/mipi-i3c-hci/core.c drivers/i3c/master/mipi-i3c-hci/mipi-i3c-hci-pci.c+6 -10 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchFrank Li
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH V5 0/5] i3c: mipi-i3c-hci-pci: Enable IBI while runtime suspended for Intel controllers

Hi

Please note all patches have Frank's Rev'd-by.

Changes in V5:

	Re-base on top of v7.0 fixes series:
		https://lore.kernel.org/linux-i3c/[email protected]/T

Changes in V4:

i3c: mipi-i3c-hci: Allow parent to manage runtime PM
Add Frank's Rev'd-by

i3c: mipi-i3c-hci-pci: Add optional ability to manage child runtime PM
Add Frank's Rev'd-by

Changes in V3:

i3c: master: Mark last_busy on IBI when runtime PM is allowed
Patch dropped

i3c: mipi-i3c-hci: Add quirk to allow IBI while runtime suspended
Add Frank's Rev'd-by

i3c: mipi-i3c-hci-pci: Add optional ability to manage child runtime PM
Remove unnecessary pm_runtime_mark_last_busy()

i3c: mipi-i3c-hci-pci: Enable IBI while runtime suspended for Intel controllers
Add Frank's Rev'd-by

Changes in V2:

i3c: mipi-i3c-hci-pci: Set d3hot_delay to 0 for Intel controllers
Add Frank's Rev'd-by

i3c: master: Allow controller drivers to select runtime PM device
Patch dropped

i3c: master: Mark last_busy on IBI when runtime PM is allowed
Adjusted slightly for earlier changes

i3c: mipi-i3c-hci: Allow parent to manage runtime PM
For HCI_QUIRK_RPM_PARENT_MANAGED case, change from disabling runtime PM to instead causing the runtime PM callbacks to do nothing

i3c: mipi-i3c-hci-pci: Add optional ability to manage child runtime PM
Do not enable autosuspend.
Callbacks for parent-managed invocation were renamed from i3c_hci_runtime_suspend to i3c_hci_rpm_suspend and from i3c_hci_runtime_resume to i3c_hci_rpm_resume. Amend commit message slightly.

i3c: mipi-i3c-hci-pci: Enable IBI while runtime suspended for Intel controllers
Retain HCI_QUIRK_RPM_ALLOWED
Amend commit message accordingly

Here are patches related to enabling IBI while runtime suspended for Intel controllers.

Intel LPSS I3C controllers can wake from runtime suspend to receive in-band interrupts (IBIs).

It is non-trivial to implement because the parent PCI device has 2 I3C bus instances (MIPI I3C HCI Multi-Bus Instance capability) represented by platform devices with a separate driver, but the IBI-wakeup is shared by both, which means runtime PM has to be managed by the parent PCI driver.

To make that work, the PCI driver handles runtime PM, but leverages the mipi-i3c-hci platform driver's functionality for saving and restoring controller state.

Adrian Hunter (5):
i3c: mipi-i3c-hci-pci: Set d3hot_delay to 0 for Intel controllers
i3c: mipi-i3c-hci: Add quirk to allow IBI while runtime suspended
i3c: mipi-i3c-hci: Allow parent to manage runtime PM
i3c: mipi-i3c-hci-pci: Add optional ability to manage child runtime PM
i3c: mipi-i3c-hci-pci: Enable IBI while runtime suspended for Intel controllers

 drivers/i3c/master/mipi-i3c-hci/core.c             |  35 +++++-
 drivers/i3c/master/mipi-i3c-hci/hci.h              |   7 ++
 drivers/i3c/master/mipi-i3c-hci/mipi-i3c-hci-pci.c | 135 +++++++++++++++++++++
 3 files changed, 172 insertions(+), 5 deletions(-)

Regards
Adrian