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

Commit 7ec5d79a authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

power: qpnp-fg: fix unbalanced irq enable warning for FULL_SOC irq



FULL_SOC irq is dynamically enabled or disabled by the driver and
a flag is used for that. Since the interrupt is enabled during
bootup and flag is not set, there is a warning printed out for
unbalanced irq enable. Also interrupt was not configured wakeup
capable. Fix it.

Change-Id: I4f3394aebca41c862746232ed560e0e13a508081
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent a1c3a94c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014-2017, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -7232,6 +7232,8 @@ static int fg_init_irqs(struct fg_chip *chip)
					chip->soc_irq[FULL_SOC].irq, rc);
				return rc;
			}
			enable_irq_wake(chip->soc_irq[FULL_SOC].irq);
			chip->full_soc_irq_enabled = true;

			if (!chip->use_vbat_low_empty_soc) {
				rc = devm_request_irq(chip->dev,