power: smb1355: Fix ICL configuration for USBIN-USBIN mode
Currently, by default USB ICL of SMB1355 is configured to max value
of 7.75A. For USBIN-USBIN mode, user space algorithm depends upon the
USB ICL vlaue of parallel charger, once it gets enabled. However, in
kernel, parallel charging in enabled prior to configuration of USB ICL,
leading to a small window where USB_ICL is configured incorrectly,
which can result in failure of the user space state machine.
Fix this by initializing the USB ICL configuration to minimum value on
its enable/disable path with ICL configuration call responsible for
properly setting the ICL.
Change-Id: I5209745387d41b84f28c0deec3ce40462813b253
Signed-off-by:
Umang Agrawal <uagrawal@codeaurora.org>
Loading
Please register or sign in to comment