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

Commit 773ed5ba authored by Nicholas Troast's avatar Nicholas Troast
Browse files

qcom-charger: qpnp-smb2: disable vbus-error IRQ trigger



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: default avatarNicholas Troast <ntroast@codeaurora.org>
parent 7ebe256e
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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);