Loading drivers/power/supply/qcom/qpnp-smb2.c +3 −0 Original line number Diff line number Diff line Loading @@ -217,6 +217,9 @@ static int smb2_parse_dt(struct smb2 *chip) return -EINVAL; } chg->reddragon_ipc_wa = of_property_read_bool(node, "qcom,qcs605-ipc-wa"); chg->step_chg_enabled = of_property_read_bool(node, "qcom,step-charging-enable"); Loading drivers/power/supply/qcom/smb-lib.c +1 −1 Original line number Diff line number Diff line Loading @@ -1606,7 +1606,7 @@ static int _smblib_vbus_regulator_enable(struct regulator_dev *rdev) smblib_dbg(chg, PR_OTG, "enabling OTG\n"); if (chg->wa_flags & OTG_WA) { if ((chg->wa_flags & OTG_WA) && (!chg->reddragon_ipc_wa)) { rc = smblib_enable_otg_wa(chg); if (rc < 0) smblib_err(chg, "Couldn't enable OTG rc=%d\n", rc); Loading drivers/power/supply/qcom/smb-lib.h +1 −0 Original line number Diff line number Diff line Loading @@ -369,6 +369,7 @@ struct smb_charger { int qc2_max_pulses; bool non_compliant_chg_detected; bool fake_usb_insertion; bool reddragon_ipc_wa; /* extcon for VBUS / ID notification to USB for uUSB */ struct extcon_dev *extcon; Loading Loading
drivers/power/supply/qcom/qpnp-smb2.c +3 −0 Original line number Diff line number Diff line Loading @@ -217,6 +217,9 @@ static int smb2_parse_dt(struct smb2 *chip) return -EINVAL; } chg->reddragon_ipc_wa = of_property_read_bool(node, "qcom,qcs605-ipc-wa"); chg->step_chg_enabled = of_property_read_bool(node, "qcom,step-charging-enable"); Loading
drivers/power/supply/qcom/smb-lib.c +1 −1 Original line number Diff line number Diff line Loading @@ -1606,7 +1606,7 @@ static int _smblib_vbus_regulator_enable(struct regulator_dev *rdev) smblib_dbg(chg, PR_OTG, "enabling OTG\n"); if (chg->wa_flags & OTG_WA) { if ((chg->wa_flags & OTG_WA) && (!chg->reddragon_ipc_wa)) { rc = smblib_enable_otg_wa(chg); if (rc < 0) smblib_err(chg, "Couldn't enable OTG rc=%d\n", rc); Loading
drivers/power/supply/qcom/smb-lib.h +1 −0 Original line number Diff line number Diff line Loading @@ -369,6 +369,7 @@ struct smb_charger { int qc2_max_pulses; bool non_compliant_chg_detected; bool fake_usb_insertion; bool reddragon_ipc_wa; /* extcon for VBUS / ID notification to USB for uUSB */ struct extcon_dev *extcon; Loading