OSDN Git Service

qcom-charger: qpnp-smb2: disable vbus-error IRQ trigger
authorNicholas Troast <ntroast@codeaurora.org>
Tue, 19 Jul 2016 22:09:33 +0000 (15:09 -0700)
committerNicholas Troast <ntroast@codeaurora.org>
Fri, 29 Jul 2016 23:51:05 +0000 (16:51 -0700)
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>
drivers/power/qcom-charger/qpnp-smb2.c

index 7810ecb..da900f3 100644 (file)
@@ -528,11 +528,10 @@ static int smb2_init_hw(struct smb2 *chip)
 
        /*
         * 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);