]> www.infradead.org Git - users/dwmw2/linux.git/commit
phy: sparx5-serdes: add ops to match data
authorDaniel Machon <daniel.machon@microchip.com>
Mon, 9 Sep 2024 15:14:44 +0000 (17:14 +0200)
committerVinod Koul <vkoul@kernel.org>
Mon, 21 Oct 2024 18:32:03 +0000 (00:02 +0530)
commitd61d42a91e322f73b8c68e22347469306b280008
tree1b5b31f5d3c7b555ac58deaa822dfd55cd1dc765
parent5206ba966d0b053bcd15e4fcba17284201ca6199
phy: sparx5-serdes: add ops to match data

We need to handle code differently in a few places. Add a struct:
sparx5_serdes_ops for this purpose, and populate it a with function to
set the SERDES type.

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-4-d695bcb57b84@microchip.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/microchip/sparx5_serdes.c
drivers/phy/microchip/sparx5_serdes.h