]> www.infradead.org Git - users/dwmw2/linux.git/commit
phy: sparx5-serdes: add support for branching on chip type
authorDaniel Machon <daniel.machon@microchip.com>
Mon, 9 Sep 2024 15:14:47 +0000 (17:14 +0200)
committerVinod Koul <vkoul@kernel.org>
Mon, 21 Oct 2024 18:32:03 +0000 (00:02 +0530)
commit6158a32b431bc93f35aff03c9889417a7643da9a
treec3a64ac0c2f065343be3ba3b28392b5010d12bb4
parentc8e4c8b7ea47cb9044c190e6148e994c8e04a34a
phy: sparx5-serdes: add support for branching on chip type

In preparation for lan969x, add a way to branch out on code that is to
be executed on either Sparx5 or lan969x.  Initially, this is required to
branch out when checking the SERDES types and SERDES speeds, since the
handling of these differ on the two platforms. This will also be used by
the lan969x driver introduced in a subsequent patch.

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