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

Commit 50ddbb7b authored by Fenglin Wu's avatar Fenglin Wu Committed by Gerrit - the friendly Code Review server
Browse files

power: smb23x-charger: Enable INOK interrupt when device suspend



INOK interrupt is used to indicate valid input adapter presence,
enable it in suspend to make sure USB insertion and removal could
be detected after device suspended.

CRs-Fixed: 1068765
Change-Id: Iec559b580f945f6c60fe64b913de59420c71ef9a
Signed-off-by: default avatarFenglin Wu <fenglinw@codeaurora.org>
parent 9cfd0ac6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2376,7 +2376,8 @@ static int smb23x_suspend(struct device *dev)
		pr_err("Save irq config failed, rc=%d\n", rc);

	/* enable only important IRQs */
	rc = smb23x_write(chip, IRQ_CFG_REG_9, BATT_MISSING_IRQ_EN_BIT);
	rc = smb23x_write(chip, IRQ_CFG_REG_9,
			BATT_MISSING_IRQ_EN_BIT | INOK_IRQ_EN_BIT);
	if (rc < 0)
		pr_err("Set irq_cfg failed, rc = %d\n", rc);