From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796372564; b=eelszD0jHYiFSKsoB8t+w8iv3NfexOvNHGOJ7ENVq5vq7ZVzIC27ZCxyTNTAywDjKcx6 tIWbHHtzttRswngSdBvWWEEDcqayJidUcjgqPyKnHj/Rce1iO7nLKcyZpUkGvIiBqljZ1 aZybgC3gxknfVUarLdUGAqt8BgY8Cv6IJvY8la02A2rPeHR2O+kwylDVNHyOd9NSAS1Xw FHZuoDHekHFcqgefvHKGsf5qdoSJmZEI0ZjrGpVGHK+UdRPkKWHclmEJ0/uztXNylbbIp 0kHm9WlV4YcGG7S99ASULDDeDl3LWQQ38oF33+CDRcTrun2eyRuW1ldcPmvRBrEZv2A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796372564; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=WdNodNx7+PgqN1YAbmRFnYlGC7fNVKuvWWx4rl4vTjQ=; b=KKt4OVS4PlknE6ASDXsqb4c63W4t9joYQbIP6ZavjV1+QHlj+rVJFU/N7a/eFHaf2/Ub rtPCx2ToxW65b+DSZKdgqeV9eiomYsjPnminDo2kYn4+8bINBZDWfyHc7ZO6FvQkEaNvD SxlPTn9fm36x+SYjyilKJ42ULVPi7TEIsdRdaJwuWZ73Ty7oRKpGsAEQJL0p3av9L/eew LnwVgKGyT+y0Z/aONIvTEohvj5dpb9zjOP4DjZDrfAut0LPqqhgDBtppy7ujBzs3Qo0qN 4pELqxbHy/zRxyP4F5irLnD0TEx81n3GzniRxk0BXwC+b1qRhrMcnWPjZXp5A9L+cfA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=AKDihvgv; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7D4BA606A322; Fri, 4 Dec 2026 08:22:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=AKDihvgv Received: by smtp.kernel.org (Postfix) with ESMTPSA id C9A9E1F000CE; Fri, 4 Dec 2026 08:22:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796372564; bh=WdNodNx7+PgqN1YAbmRFnYlGC7fNVKuvWWx4rl4vTjQ=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=AKDihvgvBccfZowNwQPQlMehuL8R5uJmnDu6TjWAZwLNhHyI1lef0cQDen1o8euDg Lw0GhZ16auXtf3cncwioX+2VNmpYeD1OOHhluEWf4MvmYfLcLvbU1QdRzWJwPTkgvV sEH6QglW0RoNgxGuLLRn6jb37WOsBgUj9RKZAxDOOZUqgT3Eid/CaDW/Q5lxO9+qNp VufcDom4gsZsxOHRIz9AvcvmR9rrojzV4uyXtWivy4OUQOFE/kC4rMDGUgDw/METud IGDIQ5UUpUzAlK9W8lhEjf1UT0P7wuDP3xGv8nT8YL0NoNORpcCCwcBDp57WKRTQM4 B2V33v4JFgxtQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] arm64: dts: imx943-evk: Add Vaux supply to keep M.2 power enabled to avoid false wake-up Reply-To: sashiko-reviews@lists.linux.dev To: =?utf-8?b?U2hlcnJ5IFN1biAoT1NTKQ==?= Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, robh@kernel.org, conor+dt@kernel.org, Frank.Li@kernel.org In-Reply-To: <20261204-943-vpcie3v3aux-v1-1-022877cfc1b3@nxp.com> References: <20261204-943-vpcie3v3aux-v1-1-022877cfc1b3@nxp.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 08:22:43 +0000 X-Mailing-List: imx@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 3 potential issues to consider: - [Medium] arm64: dts: imx943-evk: imx_pcie_host_init() glitches reg_m2_pwr on defer - [Medium] arm64: dts: imx943-evk: imx_pcie_shutdown() leaves reg_m2_pwr powered on - [Medium] arm64: dts: deprecated pcie0 vpcie3v3aux-supply duplicates reg_m2_pwr -- commit f275ca2547acea4eede10dde401de8e9c4d1539c Author: Sherry Sun arm64: dts: imx943-evk: Add Vaux supply to keep M.2 power enabled to avoid = false wake-up This patch adds vpcie3v3aux-supply =3D <®_m2_pwr> to the &pcie0 node on imx943-evk so the M.2 3.3V power rail stays enabled when the PCIe driver would otherwise power it off during suspend. > diff --git a/arch/arm64/boot/dts/freescale/imx943-evk.dts b/arch/arm64/bo= ot/dts/freescale/imx943-evk.dts > index d8fe04b64191a..2a445d21821e8 100644 > --- a/arch/arm64/boot/dts/freescale/imx943-evk.dts > +++ b/arch/arm64/boot/dts/freescale/imx943-evk.dts > @@ -1428,6 +1428,16 @@ &pcie0 { > clock-names =3D "pcie", "pcie_bus", "pcie_phy", "pcie_aux", > "ref", "extref"; > supports-clkreq; > + /* > + * If the i.MX943-EVK installs a PCIe M.2 device that doesn't support w= akeup > + * or cannot generating PME from D3cold, the skip_pwrctrl_off flag in t= he > + * PCIe driver will be set to false, causing the M.2 power to be turned= off. > + * This will generate falling edges on the BT_Wake and PCIE1_WAKE pins, > + * falsely triggering the wake-up signal and preventing the system from > + * entering sleep mode. Add this Vaux supply to keep the reg_m2_pwr ena= bled > + * to work around this issue. > + */ > + vpcie3v3aux-supply =3D <®_m2_pwr>; [Severity: Medium] Should this deprecated host-bridge vpcie3v3aux-supply property be added to &pcie0 when m2_connector already owns reg_m2_pwr? The M.2 Key E connector node already claims reg_m2_pwr via vpcie3v3-supply for pwrseq-pcie-m2, and host-bridge vpcie3v3aux-supply is deprecated for new i.MX device trees. Holding a second enable reference in pci-imx6 to work around Linux's skip_pwrctrl_off flag prevents pwrseq_pcie_m2_vregs_disable() from ever powering down the M.2 rail, even during suspend or with no card installed. Because &scmi_misc enables BRD_SM_CTRL_PCIE1_WAKE and BRD_SM_CTRL_BT_WAKE board-wide, tying this workaround to &pcie0 still fails to cover unbind, probe failure, or overlays that disable &pcie0. If the board cannot tolerate reg_m2_pwr turning off while those wake lines are armed, should that constraint live on reg_m2_pwr (for example with regulator-always-on) or be handled in the PCIe/pwrctrl/SCMI wake path? [Severity: Medium] Can this glitch reg_m2_pwr on every probe deferral retry before w-disable1-gpios is asserted? In imx_pcie_host_init(), imx_pcie->vpcie_aux is enabled with a devres disable action before pci_pwrctrl_power_on_devices() runs. If pwrseq-pcie-m2 has not yet probed to assert w-disable1-gpios, pci_pwrctrl_power_on_device() returns -EPROBE_DEFER. Devres unwind then disables reg_m2_pwr right after its 5 ms startup delay, power-cycling the M.2 slot without w-disable1-gpios asserted and violating M.2 power-up sequencing on each deferral retry. [Severity: Medium] Does this leave reg_m2_pwr powered on across system shutdown and warm reboot? imx_pcie_host_init() only schedules imx_pcie_vpcie_aux_disable() via devm_add_action_or_reset(), which does not run on shutdown. imx_pcie_shutdown() calls pci_pwrctrl_power_off_devices() to leave the slot clean for the bootloader, but never disables imx_pcie->vpcie_aux. With both pci-imx6 and pwrseq-pcie-m2 holding enable references, pwrseq_disable() only drops reg_m2_pwr's enable count from 2 to 1, leaving the M.2 rail energized instead of power-cycling the card on reboot. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204-943-vpcie3= v3aux-v1-1-022877cfc1b3@nxp.com?part=3D1