Commit f596b01b authored by Christine Gharzuzi's avatar Christine Gharzuzi Committed by Stefan Roese

phy: marvell: fix handling of unconnected comphy

- the default value of comphy pipe selector is set to PCIe (x4)
  in case of unconnected comphy the default value remains 0x4
  which may lead to several issues with comphy initialization.

- this patch adds SMC call that powers off the comphy lane in case of
  unconnected comphy.

Change-Id: I196b2916518dd8df3b159ffa85e2989b8e483087
Signed-off-by: default avatarChristine Gharzuzi <chrisg@marvell.com>
Signed-off-by: default avatarIgal Liberman <igall@marvell.com>
Reviewed-by: default avatarGrzegorz Jaszczyk <jaz@semihalf.com>
parent 5f41aaf4
......@@ -553,6 +553,10 @@ int comphy_cp110_init(struct chip_serdes_phy_config *ptr_chip_cfg,
}
switch (ptr_comphy_map->type) {
case COMPHY_TYPE_UNCONNECTED:
ret = comphy_smc(MV_SIP_COMPHY_POWER_OFF,
ptr_chip_cfg->comphy_base_addr,
lane,
ptr_comphy_map->type);
case COMPHY_TYPE_IGNORE:
continue;
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment