Re: [PATCH RFC RESEND 5/7] i3c: mipi-i3c-hci-pci: Propagate I3C wakeup requirements to PCI
[email protected] Wed, 01 Jul 2026 20:33:08 +0000
| Newsgroups | org.infradead.lists.linux-i3c,org.kernel.vger.linux-pci |
|---|---|
| Message-ID | <[email protected]> |
> Keep the PCI wakeup state aligned with the wakeup requirements of the > devices served by the controller(s). > > The PCI function is the wakeup source for HCI instances exposed beneath > it. However, wakeup is only needed when at least one attached I3C device > is enabled as a wakeup source. > > During suspend, check whether any HCI instance has a wakeup-enabled I3C > device and enable wakeup for the PCI function only in that case. > Otherwise leave PCI wakeup disabled. > > Note, the suspend callback is used for both system and runtime suspend. > Although this change may update the PCI wakeup state during runtime > suspend, it does so only when the required wakeup state changes. > Moreover, PCI wakeup-capable devices already have PME wakeup armed for > runtime suspend, so changing the wakeup-enabled state does not affect > runtime PM wakeup behavior. > > Note also, since the PCI wakeup state is derived from the wakeup > configuration of the attached I3C devices, the PCI device power/wakeup > sysfs attribute no longer provides independent wakeup control. > > Signed-off-by: Adrian Hunter <[email protected]> Sashiko has reviewed this patch and found no issues. It looks great! -- Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=5 -- linux-i3c mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-i3c