drivers: power: supply: ti: Force PD charging if compatible

Xiaomi only supports PD if the charger is deemed official.
Bypass this to unlock PD with unofficial chargers.
Safety measures are not bypassed, as seen in
pd_get_bms_digest_verified() and usbpd_pm_sm().

Change-Id: Icc99a39ae00ee466f223807621bf9601f44c75ba
This commit is contained in:
luffitys
2024-07-29 14:39:43 +02:00
committed by TechPanelGM
parent 0222d10465
commit a63f456044

View File

@@ -387,10 +387,7 @@ static bool pd_get_bms_digest_verified(struct usbpd_pm *pdpm)
pr_err("pval.intval: %d\n", pval.intval); pr_err("pval.intval: %d\n", pval.intval);
if (pval.intval == 1) return true;
return true;
else
return false;
} }
/* get bq27z561 chip ok*/ /* get bq27z561 chip ok*/