phy: marvell: fix handling of unconnected comphy
authorChristine Gharzuzi <chrisg@marvell.com>
Wed, 23 May 2018 09:10:36 +0000 (12:10 +0300)
committerStefan Roese <sr@denx.de>
Thu, 29 Apr 2021 05:45:24 +0000 (07:45 +0200)
commitf596b01b9a69a8fd486468a11f6b2dbf07984c5f
treef0b4ca893345d2a1c3751486741ec618a2182719
parent5f41aaf4c3e727bb5a0421c8b9e14548267dccee
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: Christine Gharzuzi <chrisg@marvell.com>
Signed-off-by: Igal Liberman <igall@marvell.com>
Reviewed-by: Grzegorz Jaszczyk <jaz@semihalf.com>
drivers/phy/marvell/comphy_cp110.c