]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
phy: fsl-imx8mq-usb: Clear the PCS_TX_SWING_FULL field before using it
authorStefano Radaelli <stefano.radaelli21@gmail.com>
Fri, 19 Dec 2025 16:09:12 +0000 (17:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Jan 2026 10:21:21 +0000 (11:21 +0100)
commitd279f7e17b6d408f2fdbeba795abccabf352bd78
treee62da46ac3cb094530d9e6742dc3b351930b8689
parentf93c7033689218698b5ebe5c763f2da36dec8eef
phy: fsl-imx8mq-usb: Clear the PCS_TX_SWING_FULL field before using it

[ Upstream commit 8becf9179a4b45104a1701010ed666b55bf4b3a6 ]

Clear the PCS_TX_SWING_FULL field mask before setting the new value
in PHY_CTRL5 register. Without clearing the mask first, the OR operation
could leave previously set bits, resulting in incorrect register
configuration.

Fixes: 63c85ad0cd81 ("phy: fsl-imx8mp-usb: add support for phy tuning")
Suggested-by: Leonid Segal <leonids@variscite.com>
Acked-by: Pierluigi Passaro <pierluigi.p@variscite.com>
Signed-off-by: Stefano Radaelli <stefano.r@variscite.com>
Reviewed-by: Xu Yang <xu.yang_2@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://patch.msgid.link/20251219160912.561431-1-stefano.r@variscite.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/phy/freescale/phy-fsl-imx8mq-usb.c