Merge remote-tracking branches 'regulator/topic/mode', 'regulator/topic/notifier', 'regulator/topic/palmas', 'regulator/topic/qcom' and 'regulator/topic/stw481x' into regulator-next
This commit is contained in:
@@ -277,7 +277,7 @@ static void ab8500_usb_regulator_enable(struct ab8500_usb *ab)
|
||||
dev_err(ab->dev, "Failed to set the Vintcore to 1.3V, ret=%d\n",
|
||||
ret);
|
||||
|
||||
ret = regulator_set_optimum_mode(ab->v_ulpi, 28000);
|
||||
ret = regulator_set_load(ab->v_ulpi, 28000);
|
||||
if (ret < 0)
|
||||
dev_err(ab->dev, "Failed to set optimum mode (ret=%d)\n",
|
||||
ret);
|
||||
@@ -317,7 +317,7 @@ static void ab8500_usb_regulator_disable(struct ab8500_usb *ab)
|
||||
ab->saved_v_ulpi, ret);
|
||||
}
|
||||
|
||||
ret = regulator_set_optimum_mode(ab->v_ulpi, 0);
|
||||
ret = regulator_set_load(ab->v_ulpi, 0);
|
||||
if (ret < 0)
|
||||
dev_err(ab->dev, "Failed to set optimum mode (ret=%d)\n",
|
||||
ret);
|
||||
|
@@ -142,27 +142,22 @@ static int msm_hsusb_ldo_set_mode(struct msm_otg *motg, int on)
|
||||
int ret = 0;
|
||||
|
||||
if (on) {
|
||||
ret = regulator_set_optimum_mode(motg->v1p8,
|
||||
USB_PHY_1P8_HPM_LOAD);
|
||||
ret = regulator_set_load(motg->v1p8, USB_PHY_1P8_HPM_LOAD);
|
||||
if (ret < 0) {
|
||||
pr_err("Could not set HPM for v1p8\n");
|
||||
return ret;
|
||||
}
|
||||
ret = regulator_set_optimum_mode(motg->v3p3,
|
||||
USB_PHY_3P3_HPM_LOAD);
|
||||
ret = regulator_set_load(motg->v3p3, USB_PHY_3P3_HPM_LOAD);
|
||||
if (ret < 0) {
|
||||
pr_err("Could not set HPM for v3p3\n");
|
||||
regulator_set_optimum_mode(motg->v1p8,
|
||||
USB_PHY_1P8_LPM_LOAD);
|
||||
regulator_set_load(motg->v1p8, USB_PHY_1P8_LPM_LOAD);
|
||||
return ret;
|
||||
}
|
||||
} else {
|
||||
ret = regulator_set_optimum_mode(motg->v1p8,
|
||||
USB_PHY_1P8_LPM_LOAD);
|
||||
ret = regulator_set_load(motg->v1p8, USB_PHY_1P8_LPM_LOAD);
|
||||
if (ret < 0)
|
||||
pr_err("Could not set LPM for v1p8\n");
|
||||
ret = regulator_set_optimum_mode(motg->v3p3,
|
||||
USB_PHY_3P3_LPM_LOAD);
|
||||
ret = regulator_set_load(motg->v3p3, USB_PHY_3P3_LPM_LOAD);
|
||||
if (ret < 0)
|
||||
pr_err("Could not set LPM for v3p3\n");
|
||||
}
|
||||
|
Reference in New Issue
Block a user