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

Commit 7de44b4d authored by Xiaozhe Shi's avatar Xiaozhe Shi
Browse files

power: qpnp-smbcharger: register aicl_done for rising edge only



The AICL done interrupt rises when an valid AICL measurement or collapse
occurs, and falls when a new AICL measurement starts. The software is
only interested in when a valid AICL measurement becomes available.
Disable the falling edge case for this interrupt since it just becomes
more noise for the driver.

CRs-Fixed: 920791
Change-Id: Idf8471dfe4bba731480a09e43af8d791a71a122e
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent 9d526c3a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -7012,7 +7012,9 @@ static int smbchg_request_irqs(struct smbchg_chip *chip)
				src_detect_handler, flags, rc);
			REQUEST_IRQ(chip, spmi_resource, chip->aicl_done_irq,
				"aicl-done",
				aicl_done_handler, flags, rc);
				aicl_done_handler,
				(IRQF_TRIGGER_RISING | IRQF_ONESHOT),
				rc);
			if (chip->schg_version != QPNP_SCHG_LITE) {
				REQUEST_IRQ(chip, spmi_resource,
					chip->otg_fail_irq, "otg-fail",