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

Commit c1bb138f authored by Umang Agrawal's avatar Umang Agrawal
Browse files

power: smb5: Disable rid change interrupt soruces



By default all the interrupt sources for TYPE_C_OR_RID_DETECTION_CHANGE
are enabled and are getting fired frequently on any event. Disable all
the interrupt sources not handled by charger driver.

Change-Id: I613e06472a6f83b66b702b7420afd890792515dc
Signed-off-by: default avatarUmang Agrawal <uagrawal@codeaurora.org>
parent 387632bf
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1739,6 +1739,14 @@ static int smb5_configure_typec(struct smb_charger *chg)
		}
	}

	/* Disable TypeC and RID change source interrupts */
	rc = smblib_write(chg, TYPE_C_INTERRUPT_EN_CFG_2_REG, 0);
	if (rc < 0) {
		dev_err(chg->dev,
			"Couldn't configure Type-C interrupts rc=%d\n", rc);
		return rc;
	}

	return rc;
}