phy: zynqmp: Fix sgmii clk ctrl GTR lane bit shift
authorFrantisek Bohacek <rutherther@ditigal.xyz>
Thu, 22 May 2025 06:07:03 +0000 (08:07 +0200)
committerMichal Simek <michal.simek@amd.com>
Mon, 2 Jun 2025 07:13:48 +0000 (09:13 +0200)
commit90df44fb4f0e1cbe18b02080ef8bf9e365f867b8
treecc18ea08b8264845460d36274221293de903a248
parent85f181b194c7d3810db4a0df8ea2386287b26be0
phy: zynqmp: Fix sgmii clk ctrl GTR lane bit shift

The bitshift in GEM_CLK_CTRL register is five bits, not two. There are
four bits for each GEM, and one bit reserved in between.

This has caused that using more than one GEM is impossible,
additionally corrupting the GEM0's configuration, leaving GEM0
unusable as well (ie. if GEM0 and GEM1 are used, GEM1 configuration is
going to write to GEM0's registers wrong value, leaving GEM0 unusable)

Signed-off-by: Frantisek Bohacek <rutherther@ditigal.xyz>
Link: https://lore.kernel.org/r/20250522060703.4863-1-rutherther@ditigal.xyz
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/phy/phy-zynqmp.c