]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
phy: marvell: cp110: mark u-boot power-off calls
authorIgal Liberman <igall@marvell.com>
Mon, 19 Nov 2018 07:58:32 +0000 (09:58 +0200)
committerStefan Roese <sr@denx.de>
Thu, 29 Apr 2021 05:45:24 +0000 (07:45 +0200)
It helps ATF to determine who called power off
function (U-boot/Linux) and act accordingly

Change-Id: Icfc5cbfdba64754496812154272b28c0ff639f0f
Signed-off-by: Igal Liberman <igall@marvell.com>
Reviewed-by: Grzegorz Jaszczyk <jaz@semihalf.com>
drivers/phy/marvell/comphy_cp110.c

index d9a94f9d0d09c73c9fe7ce6a2e308eb5006352bc..489a17c76f423bddd117bd8e8797cb5dacef4fc6 100644 (file)
@@ -553,10 +553,10 @@ int comphy_cp110_init(struct chip_serdes_phy_config *ptr_chip_cfg,
                }
                switch (ptr_comphy_map->type) {
                case COMPHY_TYPE_UNCONNECTED:
+                       mode = COMPHY_TYPE_UNCONNECTED | COMPHY_CALLER_UBOOT;
                        ret = comphy_smc(MV_SIP_COMPHY_POWER_OFF,
                                         ptr_chip_cfg->comphy_base_addr,
-                                        lane,
-                                        ptr_comphy_map->type);
+                                        lane, mode);
                case COMPHY_TYPE_IGNORE:
                        continue;
                        break;