From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7F6FEC43458 for ; Wed, 1 Jul 2026 20:06:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=EuG3Nt/++PFcc/+3mY4a8sj7+nUG4zkCVGCuixNtPW8=; b=tVNKBRlDhGeW8m XmIjSK3a31qTHMskp0+fDaUPjj07VOhKutw7nQOirDLD2I9n0Ad5snHsA/Of/ZLfvbaeUq4FBsrjt 9ewG7Hsd5pGlVIFC4zBBqIX26iwdWfCH3zOoEixvhfWqxiZtryMJjg1vYvcdJEgRR05rFV55R3Jp9 I32NpQbf/Z5HiyFOlPDF5TX4a+XScllOJB7WkkvJ10enLTm2MFR/L+TsPfw0JkeNj4gvR+pwMpnmg ZBDaIZeMLM8EI+WpJ57UGlpYRggNGfkvLHAbKGQxVqpNKA0zbqa/5cWoZasGt7tzu2//GdRmXzNLj Lo2zir+QfmxJShbc9jiQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wf1CV-00000002wbl-12rE; Wed, 01 Jul 2026 20:06:27 +0000 Received: from mgamail.intel.com ([192.198.163.15]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wf1CS-00000002wRb-36S8 for linux-i3c@lists.infradead.org; Wed, 01 Jul 2026 20:06:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1782936385; x=1814472385; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ebGfPmyiAwYoSiWiq257o+B7NcSMheMY6PP0hEPRA2w=; b=MaCpqBd35pf0sfGX7MO+J4j7uyOWigV30k5xqQJnYV17uRBOURINTt76 DJMFuSGsbhn0Sc71WvkseLldD4yO8aerdG0rFs3jEnT2jeoHZw/NKOSU+ ySBXkB/umU8Ug9oWC9jIupywe58YHb1iaNxMQG7J+qTQdKSi6pUzNzzJb odivigtFvg2DjGp8FAlOWKyUwbTQILctTtMHBQKmqIjuZMgIOZT8Redlm wJZ2q8Nhjqa9I+jKt/XFl/WExgw26MYfSQ6nsxkEIK+1DgaQEXVOT93u3 yzpt1c3yc/QUa+HGuFBCGXwDr27vPYp+ojWaOAe9fvCeGDhv33+guwyke g==; X-CSE-ConnectionGUID: Xs69cIBFQWufcBT0HISapw== X-CSE-MsgGUID: 5GInPVtMRbCN6lyANJsgfQ== X-IronPort-AV: E=McAfee;i="6800,10657,11834"; a="83812952" X-IronPort-AV: E=Sophos;i="6.25,142,1779174000"; d="scan'208";a="83812952" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jul 2026 13:06:25 -0700 X-CSE-ConnectionGUID: bNtEWVH5Q8qLRwpnCiwwAw== X-CSE-MsgGUID: 8wYZe7k2Tg+Za1oAXLgSVg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,142,1779174000"; d="scan'208";a="252805053" Received: from conormcd-mobl2.ger.corp.intel.com (HELO ahunter6-desk) ([10.245.244.30]) by orviesa007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jul 2026 13:06:22 -0700 From: Adrian Hunter To: alexandre.belloni@bootlin.com Cc: Frank.Li@nxp.com, rafael@kernel.org, linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pci@lists.infradead.org, linux-pm@lists.infradead.org Subject: [PATCH RFC 7/7] i3c: mipi-i3c-hci: Advertise IBI wakeup capability Date: Wed, 1 Jul 2026 23:05:52 +0300 Message-ID: <20260701200552.220042-8-adrian.hunter@intel.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260701200552.220042-1-adrian.hunter@intel.com> References: <20260701200552.220042-1-adrian.hunter@intel.com> MIME-Version: 1.0 Organization: Intel Finland Oy, Registered Address: c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo, Business Identity Code: 0357606 - 4, Domiciled in Helsinki X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260701_130624_792753_0FCF65B3 X-CRM114-Status: GOOD ( 11.96 ) X-BeenThere: linux-i3c@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-i3c" Errors-To: linux-i3c-bounces+linux-i3c=archiver.kernel.org@lists.infradead.org Set master->ibi_wakeup during probe when the associated system device advertises wakeup capability, allowing the I3C core to mark IBI-capable I3C devices as wakeup capable. Tweak the comment for i3c_hci_sysdev() to mention the new usage. Signed-off-by: Adrian Hunter --- drivers/i3c/master/mipi-i3c-hci/core.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/i3c/master/mipi-i3c-hci/core.c b/drivers/i3c/master/mipi-i3c-hci/core.c index 4e17b1480362..55724a986f90 100644 --- a/drivers/i3c/master/mipi-i3c-hci/core.c +++ b/drivers/i3c/master/mipi-i3c-hci/core.c @@ -120,9 +120,9 @@ static inline struct i3c_hci *to_i3c_hci(struct i3c_master_controller *m) /* * Determine the device that does PM / DMA and has IOMMU setup done for it in - * case of enabled IOMMU (for use with the DMA API). - * Such device is either "mipi-i3c-hci" platform device (OF/ACPI enumeration) - * parent or grandparent (PCI enumeration). + * case of enabled IOMMU (for use with the DMA API). It is also used to check + * for wakeup capability. Such device is either "mipi-i3c-hci" platform device + * (OF/ACPI enumeration) parent or grandparent (PCI enumeration). */ struct device *i3c_hci_sysdev(struct device *dev) { @@ -1175,6 +1175,9 @@ static int i3c_hci_probe(struct platform_device *pdev) if (hci->quirks & HCI_QUIRK_RPM_IBI_ALLOWED) hci->master.rpm_ibi_allowed = true; + if (device_can_wakeup(i3c_hci_sysdev(&pdev->dev))) + hci->master.ibi_wakeup = true; + return i3c_master_register(&hci->master, &pdev->dev, &i3c_hci_ops, false); } -- 2.53.0 -- linux-i3c mailing list linux-i3c@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-i3c