Loading arch/arm64/boot/dts/qcom/qcs405.dtsi +1 −0 Original line number Diff line number Diff line Loading @@ -1076,6 +1076,7 @@ pinctrl-names = "default"; pinctrl-0 = <&smb_stat>; qcom,switch-freq = <2>; dpdm-supply = <&usb2_phy0>; }; }; Loading drivers/usb/phy/phy-qcom-snps-28nm-hs.c +0 −6 Original line number Diff line number Diff line Loading @@ -426,17 +426,14 @@ static int msm_snps_dpdm_regulator_enable(struct regulator_dev *rdev) int ret = 0; struct msm_snps_hsphy *phy = rdev_get_drvdata(rdev); mutex_lock(&phy->phy_lock); if (phy->dpdm_enable) { dev_dbg(phy->phy.dev, "%s: DP DM regulator already enabled\n", __func__); mutex_unlock(&phy->phy_lock); return 0; } msm_snps_hsphy_enable_regulators(phy); phy->dpdm_enable = true; mutex_unlock(&phy->phy_lock); return ret; } Loading @@ -446,17 +443,14 @@ static int msm_snps_dpdm_regulator_disable(struct regulator_dev *rdev) int ret = 0; struct msm_snps_hsphy *phy = rdev_get_drvdata(rdev); mutex_lock(&phy->phy_lock); if (!phy->dpdm_enable) { dev_dbg(phy->phy.dev, "%s: DP DM regulator already enabled\n", __func__); mutex_unlock(&phy->phy_lock); return 0; } msm_snps_hsphy_disable_regulators(phy); phy->dpdm_enable = false; mutex_unlock(&phy->phy_lock); return ret; } Loading Loading
arch/arm64/boot/dts/qcom/qcs405.dtsi +1 −0 Original line number Diff line number Diff line Loading @@ -1076,6 +1076,7 @@ pinctrl-names = "default"; pinctrl-0 = <&smb_stat>; qcom,switch-freq = <2>; dpdm-supply = <&usb2_phy0>; }; }; Loading
drivers/usb/phy/phy-qcom-snps-28nm-hs.c +0 −6 Original line number Diff line number Diff line Loading @@ -426,17 +426,14 @@ static int msm_snps_dpdm_regulator_enable(struct regulator_dev *rdev) int ret = 0; struct msm_snps_hsphy *phy = rdev_get_drvdata(rdev); mutex_lock(&phy->phy_lock); if (phy->dpdm_enable) { dev_dbg(phy->phy.dev, "%s: DP DM regulator already enabled\n", __func__); mutex_unlock(&phy->phy_lock); return 0; } msm_snps_hsphy_enable_regulators(phy); phy->dpdm_enable = true; mutex_unlock(&phy->phy_lock); return ret; } Loading @@ -446,17 +443,14 @@ static int msm_snps_dpdm_regulator_disable(struct regulator_dev *rdev) int ret = 0; struct msm_snps_hsphy *phy = rdev_get_drvdata(rdev); mutex_lock(&phy->phy_lock); if (!phy->dpdm_enable) { dev_dbg(phy->phy.dev, "%s: DP DM regulator already enabled\n", __func__); mutex_unlock(&phy->phy_lock); return 0; } msm_snps_hsphy_disable_regulators(phy); phy->dpdm_enable = false; mutex_unlock(&phy->phy_lock); return ret; } Loading