Merge "devfreq_spdm: Handle spurious interrupts during bootup"
This commit is contained in:
commit
a3eacc7296
1 changed files with 5 additions and 1 deletions
|
@ -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
|
*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
|
*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);
|
(int)desc.arg[0], ext_status);
|
||||||
mutex_lock(&devfreqs_lock);
|
mutex_lock(&devfreqs_lock);
|
||||||
list_for_each_entry(data, &devfreqs, list) {
|
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]) {
|
if (data->spdm_client == desc.ret[0]) {
|
||||||
devfreq_monitor_suspend(data->devfreq);
|
devfreq_monitor_suspend(data->devfreq);
|
||||||
mutex_lock(&data->devfreq->lock);
|
mutex_lock(&data->devfreq->lock);
|
||||||
|
|
Loading…
Add table
Reference in a new issue