phy: ti: gmii-sel: Update methods for fetching and using qsgmii main port
authorSiddharth Vadapalli <s-vadapalli@ti.com>
Wed, 26 Oct 2022 07:45:31 +0000 (13:15 +0530)
committerVinod Koul <vkoul@kernel.org>
Mon, 7 Nov 2022 04:50:25 +0000 (10:20 +0530)
commit3b66ab69c566e79d58cc38bd7c90a6b2b0b84a7d
tree3afca2743f226fe62b388a56a46a8184e921afe5
parent8ca2a81bff096b359736bba9b7d06cf5bc04fa88
phy: ti: gmii-sel: Update methods for fetching and using qsgmii main port

The number of QSGMII main ports are specific to the device. TI's J7200 for
which the QSGMII main port property is fetched from the device-tree has
only one QSGMII main port. However, devices like TI's J721e support up to
two QSGMII main ports. Thus, the existing methods for fetching and using
the QSGMII main port are not scalable.

Update the existing methods for handling the QSGMII main ports and its
associated requirements to make it scalable for future devices.

Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Link: https://lore.kernel.org/r/20221026074532.109220-3-s-vadapalli@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/ti/phy-gmii-sel.c