Skip to content
Snippets Groups Projects
Commit 516a1bfe authored by Badhri Jagan Sridharan's avatar Badhri Jagan Sridharan Committed by Thierry Strudel
Browse files

spmi: qpnp-int: Add wakeup reason logging


Add call into wakeup reason driver to log wakeup reason when not done
otherwise.

Bug: 22040199
Change-Id: I427c63861e8f9fdfd8d58137b806a720cb2c5779
Signed-off-by: default avatarBadhri Jagan Sridharan <badhri@google.com>
parent 8d3c12a1
Branches
No related tags found
No related merge requests found
......@@ -28,6 +28,7 @@
#include <linux/printk.h>
#include <linux/ratelimit.h>
#include <linux/irqchip/qpnp-int.h>
#include <linux/wakeup_reason.h>
#include <asm/irq.h>
......@@ -633,6 +634,9 @@ static int __qpnpint_handle_irq(struct spmi_controller *spmi_ctrl,
pr_warn("%d triggered [0x%01x, 0x%02x,0x%01x] %s\n",
irq, spec->slave, spec->per, spec->irq, name);
#ifndef CONFIG_DEDUCE_WAKEUP_REASONS
log_base_wakeup_reason(irq);
#endif
} else {
generic_handle_irq(irq);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment