mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Frank Li <Frank.li@nxp.com>
To: Adrian Hunter <adrian.hunter@intel.com>
Cc: alexandre.belloni@bootlin.com, rafael@kernel.org,
	linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org,
	linux-pm@vger.kernel.org
Subject: Re: [PATCH V2 6/6] i3c: mipi-i3c-hci-pci: Enable IBI while runtime suspended for Intel controllers
Date: Wed, 4 Feb 2026 11:07:55 -0500	[thread overview]
Message-ID: <aYNu22kkCTbPx66h@lizhi-Precision-Tower-5810> (raw)
In-Reply-To: <20260204111511.78626-7-adrian.hunter@intel.com>

On Wed, Feb 04, 2026 at 01:15:11PM +0200, Adrian Hunter wrote:
> 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>
>
>
> Changes in V2:
>
> 	Retain HCI_QUIRK_RPM_ALLOWED
> 	Amend commit message accordingly
>
>
>  drivers/i3c/master/mipi-i3c-hci/core.c             | 4 +++-
>  drivers/i3c/master/mipi-i3c-hci/mipi-i3c-hci-pci.c | 3 +++
>  2 files changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/i3c/master/mipi-i3c-hci/core.c b/drivers/i3c/master/mipi-i3c-hci/core.c
> index 149b3fad34b5..d19be1d276b5 100644
> --- a/drivers/i3c/master/mipi-i3c-hci/core.c
> +++ b/drivers/i3c/master/mipi-i3c-hci/core.c
> @@ -1005,7 +1005,9 @@ static const struct acpi_device_id i3c_hci_acpi_match[] = {
>  MODULE_DEVICE_TABLE(acpi, i3c_hci_acpi_match);
>
>  static const struct platform_device_id i3c_hci_driver_ids[] = {
> -	{ .name = "intel-lpss-i3c", HCI_QUIRK_RPM_ALLOWED },
> +	{ .name = "intel-lpss-i3c", HCI_QUIRK_RPM_ALLOWED |
> +				    HCI_QUIRK_RPM_IBI_ALLOWED |
> +				    HCI_QUIRK_RPM_PARENT_MANAGED },
>  	{ /* sentinel */ }
>  };
>  MODULE_DEVICE_TABLE(platform, i3c_hci_driver_ids);
> 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 c562e666f29a..58c4a025a29c 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
> @@ -200,6 +200,7 @@ static const struct mipi_i3c_hci_pci_info intel_mi_1_info = {
>  	.id = {0, 1},
>  	.instance_offset = {0, 0x400},
>  	.instance_count = 2,
> +	.control_instance_pm = true,
>  };
>
>  static const struct mipi_i3c_hci_pci_info intel_mi_2_info = {
> @@ -209,6 +210,7 @@ static const struct mipi_i3c_hci_pci_info intel_mi_2_info = {
>  	.id = {2, 3},
>  	.instance_offset = {0, 0x400},
>  	.instance_count = 2,
> +	.control_instance_pm = true,
>  };
>
>  static const struct mipi_i3c_hci_pci_info intel_si_2_info = {
> @@ -218,6 +220,7 @@ static const struct mipi_i3c_hci_pci_info intel_si_2_info = {
>  	.id = {2},
>  	.instance_offset = {0},
>  	.instance_count = 1,
> +	.control_instance_pm = true,
>  };
>
>  static int mipi_i3c_hci_pci_find_instance(struct mipi_i3c_hci_pci *hci, struct device *dev)
> --
> 2.51.0
>

      reply	other threads:[~2026-02-04 16:08 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-04 11:15 [PATCH V2 0/6] " Adrian Hunter
2026-02-04 11:15 ` [PATCH V2 1/6] i3c: mipi-i3c-hci-pci: Set d3hot_delay to 0 " Adrian Hunter
2026-02-04 11:15 ` [PATCH V2 2/6] i3c: master: Mark last_busy on IBI when runtime PM is allowed Adrian Hunter
2026-02-04 16:10   ` Frank Li
2026-02-04 18:24     ` Adrian Hunter
2026-02-04 21:45       ` Frank Li
2026-02-05  6:43         ` Adrian Hunter
2026-02-04 11:15 ` [PATCH V2 3/6] i3c: mipi-i3c-hci: Add quirk to allow IBI while runtime suspended Adrian Hunter
2026-02-04 15:54   ` Frank Li
2026-02-04 11:15 ` [PATCH V2 4/6] i3c: mipi-i3c-hci: Allow parent to manage runtime PM Adrian Hunter
2026-02-04 11:15 ` [PATCH V2 5/6] i3c: mipi-i3c-hci-pci: Add optional ability to manage child " Adrian Hunter
2026-02-04 16:06   ` Frank Li
2026-02-04 16:16     ` Rafael J. Wysocki
2026-02-04 18:27     ` Adrian Hunter
2026-02-04 11:15 ` [PATCH V2 6/6] i3c: mipi-i3c-hci-pci: Enable IBI while runtime suspended for Intel controllers Adrian Hunter
2026-02-04 16:07   ` Frank Li [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aYNu22kkCTbPx66h@lizhi-Precision-Tower-5810 \
    --to=frank.li@nxp.com \
    --cc=adrian.hunter@intel.com \
    --cc=alexandre.belloni@bootlin.com \
    --cc=linux-i3c@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=rafael@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®