From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A66F423A62; Wed, 4 Feb 2026 15:05:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217540; cv=none; b=H0N/Tkj+w0BUUqS8W9Zya5l6RfRhL8yYri8tskXs7Mx51NMqTzken03wyDcIcxDHD8AZ5nRZ98/SUx+CdiiDER/48EW99iiTp0uxEBd5VX9caftciw0YvZ1tsuNzQSA7ODxxdn/9JGChy9AG1eV0JaTZ3mz09XQf+XWCD4sq/kU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217540; c=relaxed/simple; bh=I7rmWifNfDHMkd0l1oyK9z9wy++FOH5iZJBmh+/fdSw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sU9m50r7hhvZzvFhiuUrkLDgDz+lB2tioVux3xLnZOi912OOwKWQWBl+ZN7G2tGA3F1tRW1LExyD19Y2ybxwSSHF9OxMtgItVtW1+HNix9FzMZvjWTqISxJKWhHO4yV3mk2Pg82FUPUZoSfSS/8Bv6zkmv8yEyGoJvbT3A/Z8nw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XomKZpjz; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="XomKZpjz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 823B2C4CEF7; Wed, 4 Feb 2026 15:05:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770217540; bh=I7rmWifNfDHMkd0l1oyK9z9wy++FOH5iZJBmh+/fdSw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XomKZpjzY8so3zed7bkfoHNRyT/gq1uCDHKKltG98j+hauHYnMW7KP02MicOOdR7e oWBG6/vZlglSvcEbkZVquHT27D5buLHnGOmBJzN66VIMMtCYbCdA/0Ufs8XX07Kkjy +M+nyumvrNKOjOneIYXH3dPvwGd2uMrOTIuQP7nY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Rafael Beims , Vinod Koul Subject: [PATCH 6.1 044/280] phy: freescale: imx8m-pcie: assert phy reset during power on Date: Wed, 4 Feb 2026 15:36:58 +0100 Message-ID: <20260204143911.224172133@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260204143909.614719725@linuxfoundation.org> References: <20260204143909.614719725@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Rafael Beims commit f2ec4723defbc66a50e0abafa830ae9f8bceb0d7 upstream. After U-Boot initializes PCIe with "pcie enum", Linux fails to detect an NVMe disk on some boot cycles with: phy phy-32f00000.pcie-phy.0: phy poweron failed --> -110 Discussion with NXP identified that the iMX8MP PCIe PHY PLL may fail to lock when re-initialized without a reset cycle [1]. The issue reproduces on 7% of tested hardware platforms, with a 30-40% failure rate per affected device across boot cycles. Insert a reset cycle in the power-on routine to ensure the PHY is initialized from a known state. [1] https://community.nxp.com/t5/i-MX-Processors/iMX8MP-PCIe-initialization-in-U-Boot/m-p/2248437#M242401 Signed-off-by: Rafael Beims Cc: stable@vger.kernel.org Link: https://patch.msgid.link/20251223150254.1075221-1-rafael@beims.me Signed-off-by: Vinod Koul Signed-off-by: Greg Kroah-Hartman --- drivers/phy/freescale/phy-fsl-imx8m-pcie.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/phy/freescale/phy-fsl-imx8m-pcie.c +++ b/drivers/phy/freescale/phy-fsl-imx8m-pcie.c @@ -91,7 +91,8 @@ static int imx8_pcie_phy_power_on(struct writel(imx8_phy->tx_deemph_gen2, imx8_phy->base + PCIE_PHY_TRSV_REG6); break; - case IMX8MP: /* Do nothing. */ + case IMX8MP: + reset_control_assert(imx8_phy->reset); break; }