]> www.infradead.org Git - linux.git/commit
phy: xilinx: phy-zynqmp: Fix SGMII linkup failure on resume
authorPiyush Mehta <piyush.mehta@amd.com>
Mon, 5 Aug 2024 05:59:07 +0000 (11:29 +0530)
committerVinod Koul <vkoul@kernel.org>
Mon, 5 Aug 2024 16:16:58 +0000 (21:46 +0530)
commit5af9b304bc6010723c02f74de0bfd24ff19b1a10
tree008cd37458c6c264619917939f0faccc31e3ca74
parent3a07703a523045cbdb0a5fa5e0902a9145ee43e9
phy: xilinx: phy-zynqmp: Fix SGMII linkup failure on resume

On a few Kria KR260 Robotics Starter Kit the PS-GEM SGMII linkup is not
happening after the resume. This is because serdes registers are reset
when FPD is off (in suspend state) and needs to be reprogrammed in the
resume path with the same default initialization as done in the first
stage bootloader psu_init routine.

To address the failure introduce a set of serdes registers to be saved in
the suspend path and then restore it on resume.

Fixes: 4a33bea00314 ("phy: zynqmp: Add PHY driver for the Xilinx ZynqMP Gigabit Transceiver")
Signed-off-by: Piyush Mehta <piyush.mehta@amd.com>
Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Link: https://lore.kernel.org/r/1722837547-2578381-1-git-send-email-radhey.shyam.pandey@amd.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/xilinx/phy-zynqmp.c