summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDilip Kota <dkota@codeaurora.org>2015-12-16 17:59:36 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-03-28 02:02:34 -0700
commit97426ed6d52e32acecabc8b692a795ee678af5fb (patch)
treeb8a40b1acad765a30fe7300872dda95768cab30f
parent40a081e38b3706b91200ba2ba7ab6c7ce3fdcc51 (diff)
devfreq_spdm: Handle spurious interrupts during bootup
Terminate the interrupts triggered before the intitalisation itself. Change-Id: I7c005134ecbdae38b58e4312f9e294f5b59c2510 Signed-off-by: Dilip Kota <dkota@codeaurora.org> Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
-rw-r--r--drivers/devfreq/governor_spdm_bw_hyp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/devfreq/governor_spdm_bw_hyp.c b/drivers/devfreq/governor_spdm_bw_hyp.c
index cd068a3097ce..f18b72af5fc4 100644
--- a/drivers/devfreq/governor_spdm_bw_hyp.c
+++ b/drivers/devfreq/governor_spdm_bw_hyp.c
@@ -1,5 +1,5 @@
/*
-*Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
+*Copyright (c) 2014-2016, 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
@@ -84,6 +84,10 @@ static irqreturn_t threaded_isr(int irq, void *dev_id)
(int)desc.arg[0], ext_status);
mutex_lock(&devfreqs_lock);
list_for_each_entry(data, &devfreqs, list) {
+ if (data == NULL || data->devfreq == NULL) {
+ pr_err("Spurious interrupts\n");
+ break;
+ }
if (data->spdm_client == desc.ret[0]) {
devfreq_monitor_suspend(data->devfreq);
mutex_lock(&data->devfreq->lock);