soc: swr-mstr: Fix headset detection issue

Do not disable wake irq during registration of
wake up interrupt as it leads to multiple disable
calls of wake irq during boot up and headset detection
fails sometimes.

CRs-Fixed: 2356299
Change-Id: I79aa0ab46d26dc0e352d399e0d4381a11ed936f4
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
This commit is contained in:
Aditya Bavanari 2018-12-03 13:26:59 +05:30 committed by Meng Wang
parent 63f4815535
commit 3517b1102a

View file

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
*/
#include <linux/irq.h>
@ -2181,8 +2181,7 @@ int swrm_register_wake_irq(struct swr_mstr_ctrl *swrm)
__func__, ret);
return -EINVAL;
}
/* Disable wake irq - enable it after clock stop */
disable_irq(swrm->wake_irq);
irq_set_irq_wake(swrm->wake_irq, 1);
}
return ret;
}