phy: cadence: Sierra: Add support for skipping configuration
authorAswath Govindraju <a-govindraju@ti.com>
Fri, 28 Jan 2022 07:26:41 +0000 (12:56 +0530)
committerVinod Koul <vkoul@kernel.org>
Mon, 7 Feb 2022 04:57:43 +0000 (10:27 +0530)
commitd88ca22d6f0c9245086fe4cfca4cbe84382bdaa1
treeaf75c950f82d0d15f78199b01221bd77032c6768
parent1e805d190ba59e870a316c603f11e16de5a04131
phy: cadence: Sierra: Add support for skipping configuration

In some cases, a single SerDes instance can be shared between two different
processors, each using a separate link. In these cases, the SerDes
configuration is done in an earlier boot stage. Therefore, add support to
skip reconfiguring, if it is was already configured beforehand.

Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20220128072642.29188-1-a-govindraju@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/cadence/phy-cadence-sierra.c