phy: ti: j721e-wiz: Do not configure wiz if its already configured
authorFaiz Abbas <faiz_abbas@ti.com>
Tue, 30 Mar 2021 11:01:34 +0000 (16:31 +0530)
committerVinod Koul <vkoul@kernel.org>
Wed, 31 Mar 2021 11:15:47 +0000 (16:45 +0530)
commit725c7b8d300f8f26163435628b41a4c0a014dd24
treec13a1cf4d8e781cbb828ee34c46b014b1d42d806
parent1436ec309e6251b372b757bfacf88f5954b8f3fd
phy: ti: j721e-wiz: Do not configure wiz if its already configured

Serdes lanes might be shared between multiple cores in some usecases
and its not possible to lock PLLs for both the lanes independently
by the two cores. This requires a bootloader to configure both the
lanes at early boot time.

To handle this case, skip all configuration if any of the lanes has
already been enabled.

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Link: https://lore.kernel.org/r/20210330110138.24356-2-kishon@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/ti/phy-j721e-wiz.c