]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
phy: sparx5-serdes: add constants to match data
authorDaniel Machon <daniel.machon@microchip.com>
Mon, 9 Sep 2024 15:14:42 +0000 (17:14 +0200)
committerVinod Koul <vkoul@kernel.org>
Mon, 21 Oct 2024 18:32:03 +0000 (00:02 +0530)
commit8e65baf8ccc1fdc72645db15a10bd69209cccfb8
treeb8ab27fe825707ce88302260df43332545ee7241
parentd41bb5e00ec7ac2905ab115ed4bbf971aa593704
phy: sparx5-serdes: add constants to match data

We need to handle a few different constants that differ for Sparx5 and
lan969x. Add a new struct: sparx5_serdes_consts for this purpose. We
populate it with an initial field for the number of SERDES'es: sd_max.

Signed-off-by: Daniel Machon <daniel.machon@microchip.com>
Reviewed-by: Steen Hegelund <Steen.Hegelund@microchip.com>
Link: https://lore.kernel.org/r/20240909-sparx5-lan969x-serdes-driver-v2-2-d695bcb57b84@microchip.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/microchip/sparx5_serdes.c
drivers/phy/microchip/sparx5_serdes.h