drivers: eud: Set the default state for charger & usb
When EUD CSR is enabled set the default cable state and charger state to
enable. If the default state is not enabled the first spoof attach or
charger enable wont work. Add check to make sure if usb is present and
charger is of type SDP/CDP before enabling eud otherwise the initial
state of the extcon will not be correct and we will end up powering on
usb controller by sending spoof attach exton state even though usb is
not really connected.
Change-Id: Icfe3609d116e48251c133f7142e2e19b476f5a4b
Signed-off-by:
Channagoud Kadabi <ckadabi@codeaurora.org>
Loading
Please register or sign in to comment