Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1e0a32f authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar
Browse files

power: qpnp-smbcharger: force DPF_DMF between uv and src_det irq



When usb is inserted, it could take up to 600mS for charger h/w to run
APSD. APSD run involves charger changing the USB DP and DM lines for
charger type detection. Ensure that the usb driver is instructed to keep
the lines floating while this is happening. In other words ensure that
the dp_dm property is always set to DPF_DMF while we are between a falling
usbin_uv and a rising src_detect interrupt.

Note that all use cases are expected to call set_usb_psy_dp_dm() to set
DP_DM property, where the check for usbin_uv and src_detect interrupt is
done. This rule does not apply to usbin_uv interrupt handler where the
interrupt states are known and the property can be set directly.

Change-Id: Ifa2bd84312c58257e1e878e9ff51987b4a29b03e
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent 37bc52a5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment