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

Skip to content
Commit 52494f3b authored by Sriharsha Allenki's avatar Sriharsha Allenki
Browse files

usb: phy: qusb: Prevent charger detection if EUD is enabled



With EUD enabled in boot, the charger detection would
cause failure of EUD enumeration on PC because it
involves resetting the PHY and disabling the clamp
register.

So, prevent charger detection if EUD is enabled, and
just notify the charger type as SDP to the PMIC.
While at it, prevent the clearing of clamp register
which might also cause the EUD to fail on PC.

While at it, refactor the code for setting and clearing
the TCSR clamp register to prevent multiple "if"
conditions repeating over the driver.

Change-Id: Ia8c57ea2c0e01ae337c53107d2d7e60b873df20c
Signed-off-by: default avatarSriharsha Allenki <sallenki@codeaurora.org>
parent c77acc02
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