summaryrefslogtreecommitdiff
path: root/drivers/soc/qcom/irq-helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/soc/qcom/irq-helper.c')
-rw-r--r--drivers/soc/qcom/irq-helper.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/soc/qcom/irq-helper.c b/drivers/soc/qcom/irq-helper.c
index 7bb371f7991e..370801291230 100644
--- a/drivers/soc/qcom/irq-helper.c
+++ b/drivers/soc/qcom/irq-helper.c
@@ -78,10 +78,12 @@ IRQ_HELPER_ATTR(irq_blacklist_on, 0444, show_deploy, NULL);
static struct irq_helper *irq_h;
+/* Do not call this API in an atomic context */
int irq_blacklist_on(void)
{
bool flag = false;
+ might_sleep();
if (!irq_h) {
pr_err("%s: init function is not called", __func__);
return -EPERM;
@@ -103,10 +105,12 @@ int irq_blacklist_on(void)
}
EXPORT_SYMBOL(irq_blacklist_on);
+/* Do not call this API in an atomic context */
int irq_blacklist_off(void)
{
bool flag = false;
+ might_sleep();
if (!irq_h) {
pr_err("%s: init function is not called", __func__);
return -EPERM;