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

Commit c92e9e53 authored by Harry Yang's avatar Harry Yang
Browse files

power: smb5: disable Type-C CCOUT detach/attach interrupts



Type-C CCOUT attach and detach interrupts are not used, disable both.

CRs-Fixed: 2308874
Change-Id: Id98fa6df3319b5b83e30547c77f71491d219dbb3
Signed-off-by: default avatarHarry Yang <harryy@codeaurora.org>
parent 18713862
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1555,10 +1555,8 @@ static int smb5_configure_typec(struct smb_charger *chg)
		return rc;
	}

	/* Use simple write to enable only required interrupts */
	rc = smblib_write(chg, TYPE_C_INTERRUPT_EN_CFG_1_REG,
				TYPEC_CCOUT_DETACH_INT_EN_BIT |
				TYPEC_CCOUT_ATTACH_INT_EN_BIT);
	/* Use simple write to clear interrupts */
	rc = smblib_write(chg, TYPE_C_INTERRUPT_EN_CFG_1_REG, 0);
	if (rc < 0) {
		dev_err(chg->dev,
			"Couldn't configure Type-C interrupts rc=%d\n", rc);