summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChetan C R <cravin@codeaurora.org>2019-07-02 15:35:09 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2019-07-10 05:10:53 -0700
commit342c8676f593a75db4e02597cae0bdd8d828d861 (patch)
tree51767e50d0c7512aa274e9962dd9adf35daf4a13
parent74b80978645a959dca1e26fc2d5e999d4517b2be (diff)
power: qpnp-smbcharger: Change ordering of EXTCON_USB_SPEED
USB presence is notified before setting EXTCON_USB_SPEED, this prevents the SS PHY resume. Fix this ordering. Change-Id: I4ad7bc065b968c6a7a461a2a436b7f2c755bab67 Signed-off-by: Chetan C R <cravin@codeaurora.org>
-rw-r--r--drivers/power/supply/qcom/qpnp-smbcharger.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/supply/qcom/qpnp-smbcharger.c b/drivers/power/supply/qcom/qpnp-smbcharger.c
index 2ebefb072685..819c002ae0fc 100644
--- a/drivers/power/supply/qcom/qpnp-smbcharger.c
+++ b/drivers/power/supply/qcom/qpnp-smbcharger.c
@@ -4805,10 +4805,10 @@ static void handle_usb_insertion(struct smbchg_chip *chip)
/* Only notify USB if it's not a charger */
if (usb_supply_type == POWER_SUPPLY_TYPE_USB ||
usb_supply_type == POWER_SUPPLY_TYPE_USB_CDP) {
- extcon_set_cable_state_(chip->extcon, EXTCON_USB,
- chip->usb_present);
extcon_set_cable_state_(chip->extcon, EXTCON_USB_SPEED,
chip->usb_present);
+ extcon_set_cable_state_(chip->extcon, EXTCON_USB,
+ chip->usb_present);
}
/* Notify the USB psy if OV condition is not present */
if (!chip->usb_ov_det) {