summaryrefslogtreecommitdiff
path: root/drivers/pinctrl
diff options
context:
space:
mode:
authorThierry Strudel <tstrudel@google.com>2016-07-07 18:13:23 -0700
committerMichael Bestas <mkbestas@lineageos.org>2019-12-23 23:43:35 +0200
commitc91dc40e09d97e977517c25fee8553e970d7b3aa (patch)
tree718643900936bb7d3019fa9ad6af924aaa1b2c74 /drivers/pinctrl
parente7e5cf4ff8afe5a7c3800aca0bac53aa0140358b (diff)
pinctrl: qcom: log wakeup reason
Bug: 29697729 Change-Id: Id25487ba6ba4f141dff3653089a100931bd4fb71 Signed-off-by: Thierry Strudel <tstrudel@google.com>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r--drivers/pinctrl/qcom/pinctrl-msm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c
index 1a25430447f4..055b1df3a861 100644
--- a/drivers/pinctrl/qcom/pinctrl-msm.c
+++ b/drivers/pinctrl/qcom/pinctrl-msm.c
@@ -30,6 +30,7 @@
#include <linux/syscore_ops.h>
#include <linux/reboot.h>
#include <linux/irqchip/msm-mpm-irq.h>
+#include <linux/wakeup_reason.h>
#include "../core.h"
#include "../pinconf.h"
#include "pinctrl-msm.h"
@@ -983,7 +984,7 @@ static void msm_pinctrl_resume(void)
name = "stray irq";
else if (desc->action && desc->action->name)
name = desc->action->name;
-
+ log_base_wakeup_reason(irq);
pr_warn("%s: %d triggered %s\n", __func__, irq, name);
}
}