power: qpnp-smbcharger: Treat charger as DCP when APSD is disabled
When APSD is disabled, PMI registers do not set any bits in the type
register. The driver treats this as an SDP and input current
configurations are written to usb 5/1 mode registers.
For HVDCP 3.0, APSD remains disabled. When input current is configured,
it ends up writing to usb 5/1 related registers instead of high current
mode registers. This essentially causes HVDCP 3.0 to run with incorrect
input current.
Fix this by treating the type as DCP when APSD is disabled. This will
end up configuring the high current mode registers for HVDCP 3.0.
Change-Id: I5d8dff02d46fa0fb5c1fdd5e2ab6777a2e9ce6ca
Signed-off-by:
Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Loading
Please register or sign in to comment