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:
@@ -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*/
|
||||||
|
|||||||
Reference in New Issue
Block a user