power: qcom: smb-lib: handle dynamic Rp change
The legacy detection workaround change restricts DCP to 1.5A draw, regardless of legacy/non-legacy type. This was to prevent a legacy (non-compliant) cable, incorrectly detected as non-legacy cable from drawing more than 1.5A. The issue with legacy bit is that hardware could end up reporting non-legacy for a legacy cable (not the other way round). We want to ensure that for non-compliant legacy cable SDP/CDP current limits are honoured and that for a Rp = 10k legacy cable VBUS shouldn't go higher than 5V. This cap of 1.5A on DCP is not necessary. Moreover AICL will limit the current if needed. To realize this force the Rp based current whenever DCP or float is seen via the LEGACY_UNKNOWN_VOTER. LEGACY_UNKNOWN_VOTER is not removed unless a confirmed hvdcp or pd is seen. Change-Id: I89505e9db4f045aaf71ab0ee534de783ea4d2df3 Signed-off-by:Ashay Jaiswal <ashayj@codeaurora.org> Signed-off-by:
Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Loading
Please register or sign in to comment