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 22D4A7482; Mon, 23 Jun 2025 21:18:10 +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=1750713490; cv=none; b=aBRmI8vimzXNuwV/6KnXMBh0kF0JGHka+J33xmTNWN9DFeP1CpNCoFq2Zl6V9JOIsFLX2Evl1XvSUZe8FrZ2+VmncFXpnLBN7saejG6HvVCMxexuDzPtvMOgENCDnA8SQWuHVh0lCX8RLsyeazD4p0Hc5UHJg72UmHmZ6GtQ5pQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750713490; c=relaxed/simple; bh=jKyv5qHciQDY2PLbTvmjNndQ5i7psH4RFqLA2T+SXAg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BdG0GXDpinMZhPj9s4CprtT1kFMubRREKho39utg3v8/77XXRDati+PNui1V4HoDUwBLskGbDvw8bG2JBVkuCQ6NbDWI/W87k3Bggf+Bqi/QxDOH3h4SqTvoXgTjXCv6JRe23N4MYUXkH7+e2kO+5LXYVpX/F7bEeAisFzp2mPA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MG8ina7l; 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="MG8ina7l" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B0D2AC4CEEA; Mon, 23 Jun 2025 21:18:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750713490; bh=jKyv5qHciQDY2PLbTvmjNndQ5i7psH4RFqLA2T+SXAg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MG8ina7lcaqKePgAC1wCLrSURq+Gr/9q7Xn1onI+/r6Jv+CwedaC/sqdG/DXCvoV1 dLP+Ywa+d6s7DvhZcnSljW8qmtKSGajX2sckGpnwhMrymzpA9EFweTRfRhUAAkzj0i mTxpxb8pCGRwhDHqZgf1gvcV0Lra0B+N1TkJFuOA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jun Li , Xu Yang , Vinod Koul Subject: [PATCH 6.6 093/290] phy: fsl-imx8mq-usb: fix phy_tx_vboost_level_from_property() Date: Mon, 23 Jun 2025 15:05:54 +0200 Message-ID: <20250623130629.769770391@linuxfoundation.org> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250623130626.910356556@linuxfoundation.org> References: <20250623130626.910356556@linuxfoundation.org> User-Agent: quilt/0.68 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.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Xu Yang commit b15ee09ddb987a122e74fb0fdf1bd6e864959fd3 upstream. The description of TX_VBOOST_LVL is wrong in register PHY_CTRL3 bit[31:29]. The updated description as below: 011: Corresponds to a launch amplitude of 0.844 V. 100: Corresponds to a launch amplitude of 1.008 V. 101: Corresponds to a launch amplitude of 1.156 V. This will fix the parsing function phy_tx_vboost_level_from_property() to return correct value. Fixes: 63c85ad0cd81 ("phy: fsl-imx8mp-usb: add support for phy tuning") Cc: stable@vger.kernel.org Reviewed-by: Jun Li Signed-off-by: Xu Yang Link: https://lore.kernel.org/r/20250430094502.2723983-3-xu.yang_2@nxp.com Signed-off-by: Vinod Koul Signed-off-by: Greg Kroah-Hartman --- drivers/phy/freescale/phy-fsl-imx8mq-usb.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) --- a/drivers/phy/freescale/phy-fsl-imx8mq-usb.c +++ b/drivers/phy/freescale/phy-fsl-imx8mq-usb.c @@ -95,12 +95,12 @@ static u32 phy_tx_preemp_amp_tune_from_p static u32 phy_tx_vboost_level_from_property(u32 microvolt) { switch (microvolt) { - case 0 ... 960: - return 0; - case 961 ... 1160: - return 2; - default: + case 1156: + return 5; + case 844: return 3; + default: + return 4; } }