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 B4FE132BF21; Wed, 21 Jan 2026 18:31:22 +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=1769020282; cv=none; b=Pg7LibbTnQW9GldJ+MOVbas2rI4i4mI3aNDEQyM3usyucKKZdyh0rV03/lR46FxcvgHmK/qjzvAC5mgyHMKgVUgpjExLNckUazTIOzw4hZ4eZTE5AIF8E6T/Q8w3UKVkhimdZVlphlmCbbGMmwcivvkuBMCRyxTo8XO0icwuPUA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769020282; c=relaxed/simple; bh=vZ8pHZ2AmwIXruhJqvqNrQh8sXzIsW6xEkUPsO2CxiE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OvrKupd9AVVeJKGqX+dLfrC8sJHrmmy9mr2AuTuPBeZ0NzTSPsbMXZrqgVVTUBf68s6rQHTdUzplnFpmm2Bhh1ra+84ew7GGqbddPblBwiW1WJ+Of6nbOF1E1tIJzY03HQ8CyXhnAxqVIogD1uqveFqbUy0lZxhHdywXTXXTa+U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FLY0SCeE; 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="FLY0SCeE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27460C4CEF1; Wed, 21 Jan 2026 18:31:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1769020282; bh=vZ8pHZ2AmwIXruhJqvqNrQh8sXzIsW6xEkUPsO2CxiE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FLY0SCeEI7/0PdCxHHZzu/B9pnhEthRpcBm10k5PVuCipNyAY5ZAvDRGFn7gKMyI9 baVf5qScpQUGMtHxUiQeml/YoO1grRAEv4iVEjETYEmJHr8DNeURge4uzfsqua+d9q HMR3O34wvd+nhapEOXnLo8pKqgLPB0xUfRxrPA9s= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Rafael Beims , Vinod Koul Subject: [PATCH 6.18 113/198] phy: freescale: imx8m-pcie: assert phy reset during power on Date: Wed, 21 Jan 2026 19:15:41 +0100 Message-ID: <20260121181422.622005417@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260121181418.537774329@linuxfoundation.org> References: <20260121181418.537774329@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.18-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 @@ -89,7 +89,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; }