phy: sparx5-serdes: add skip_cmu_cfg check when configuring lanes
authorDaniel Machon <daniel.machon@microchip.com>
Mon, 17 Apr 2023 18:03:35 +0000 (20:03 +0200)
committerVinod Koul <vkoul@kernel.org>
Mon, 8 May 2023 11:43:01 +0000 (17:13 +0530)
commit7a503071e06db4409b7066b8ecca9f3da03dd3b1
treefcc947c5881835ce1424be9bb39998468d2ff078
parent2db7289f59987a97160f8fadfe5aaece325f610b
phy: sparx5-serdes: add skip_cmu_cfg check when configuring lanes

Add a check for skip_cmu_cfg when configuring the serdes lane.  All
individual serdeses are reset upon first configuration. Resetting the
serdes involves reconfiguring it with preset values. The serdesmode is
required to determine the clock-providing CMU, therefore make sure the
serdes is not reconfigured if the serdesmode is not set.

Signed-off-by: Daniel Machon <daniel.machon@microchip.com>
Link: https://lore.kernel.org/r/20230417180335.2787494-8-daniel.machon@microchip.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/microchip/sparx5_serdes.c