Loading drivers/power/supply/qcom/qpnp-smbcharger.c +6 −1 Original line number Diff line number Diff line Loading @@ -308,6 +308,7 @@ enum pmic_subtype { PMI8950 = 17, PMI8996 = 19, PMI8937 = 55, PMI8940 = 64, }; enum smbchg_wa { Loading Loading @@ -8126,6 +8127,8 @@ static int smbchg_check_chg_version(struct smbchg_chip *chip) case PMI8950: chip->wa_flags |= SMBCHG_RESTART_WA; case PMI8937: /* fall through */ case PMI8940: chip->wa_flags |= SMBCHG_BATT_OV_WA; if (pmic_rev_id->rev4 < 2) /* PMI8950 1.0 */ { chip->wa_flags |= SMBCHG_AICL_DEGLITCH_WA; Loading @@ -8140,7 +8143,9 @@ static int smbchg_check_chg_version(struct smbchg_chip *chip) ARRAY_SIZE(aicl_rerun_period_schg_lite); chip->schg_version = QPNP_SCHG_LITE; if (pmic_rev_id->pmic_subtype == PMI8937) /* PMI8937/PMI8940 doesn't support HVDCP */ if ((pmic_rev_id->pmic_subtype == PMI8937) || (pmic_rev_id->pmic_subtype == PMI8940)) chip->hvdcp_not_supported = true; break; case PMI8996: Loading Loading
drivers/power/supply/qcom/qpnp-smbcharger.c +6 −1 Original line number Diff line number Diff line Loading @@ -308,6 +308,7 @@ enum pmic_subtype { PMI8950 = 17, PMI8996 = 19, PMI8937 = 55, PMI8940 = 64, }; enum smbchg_wa { Loading Loading @@ -8126,6 +8127,8 @@ static int smbchg_check_chg_version(struct smbchg_chip *chip) case PMI8950: chip->wa_flags |= SMBCHG_RESTART_WA; case PMI8937: /* fall through */ case PMI8940: chip->wa_flags |= SMBCHG_BATT_OV_WA; if (pmic_rev_id->rev4 < 2) /* PMI8950 1.0 */ { chip->wa_flags |= SMBCHG_AICL_DEGLITCH_WA; Loading @@ -8140,7 +8143,9 @@ static int smbchg_check_chg_version(struct smbchg_chip *chip) ARRAY_SIZE(aicl_rerun_period_schg_lite); chip->schg_version = QPNP_SCHG_LITE; if (pmic_rev_id->pmic_subtype == PMI8937) /* PMI8937/PMI8940 doesn't support HVDCP */ if ((pmic_rev_id->pmic_subtype == PMI8937) || (pmic_rev_id->pmic_subtype == PMI8940)) chip->hvdcp_not_supported = true; break; case PMI8996: Loading