Эх сурвалжийг харах

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 <[email protected]>
Aditya Bavanari 6 жил өмнө
parent
commit
3517b1102a
1 өөрчлөгдсөн 2 нэмэгдсэн , 3 устгасан
  1. 2 3
      soc/swr-mstr-ctrl.c

+ 2 - 3
soc/swr-mstr-ctrl.c

@@ -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;
 }