]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
phy: zynqmp: use read-modify-write for SERDES scrambler bypass
authorNava kishore Manne <nava.kishore.manne@amd.com>
Sat, 27 Jun 2026 15:52:28 +0000 (21:22 +0530)
committerVinod Koul <vkoul@kernel.org>
Wed, 22 Jul 2026 15:22:34 +0000 (20:52 +0530)
commit21e0749f931702765b9d52d05740092bc87fcd8d
treead8fc3d7a9b46c670d485f8987e8b26b68ca0f2d
parent6cb22477929489a412df8d153e550e77a012e701
phy: zynqmp: use read-modify-write for SERDES scrambler bypass

xpsgtr_bypass_scrambler_8b10b() used xpsgtr_write_phy() which performs
a full register write, silently clearing any bits beyond the intended
bypass control fields.

Switch to xpsgtr_clr_set_phy() with clr=mask, set=mask to set only
the bypass bits while preserving the remaining bits in each register.

Fixes: 4a33bea00314 ("phy: zynqmp: Add PHY driver for the Xilinx ZynqMP Gigabit Transceiver")
Cc: stable@vger.kernel.org
Signed-off-by: Nava kishore Manne <nava.kishore.manne@amd.com>
Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Acked-by: Michal Simek <michal.simek@amd.com>
Link: https://patch.msgid.link/20260627155229.2791113-3-radhey.shyam.pandey@amd.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/xilinx/phy-zynqmp.c