When a Type-C legacy cable is connected to the phone but left unconnected
on the other side an interrupt storm can be observed which is caused by
the vbus-error interrupt trigger. Disable this interrupt trigger.
Change-Id: I5342c58acc83ecff4bf5f8e425de94daa1dabb50
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
/*
* trigger the usb-typec-change interrupt only when the CC state
- * changes, or there was a VBUS error
+ * changes
*/
rc = smblib_write(chg, TYPE_C_INTRPT_ENB_REG,
- TYPEC_CCSTATE_CHANGE_INT_EN_BIT
- | TYPEC_VBUS_ERROR_INT_EN_BIT);
+ TYPEC_CCSTATE_CHANGE_INT_EN_BIT);
if (rc < 0) {
dev_err(chg->dev,
"Couldn't configure Type-C interrupts rc=%d\n", rc);