summaryrefslogtreecommitdiff
path: root/soc/swr-mstr-ctrl.h
diff options
context:
space:
mode:
authorVatsal Bucha <vbucha@codeaurora.org>2020-08-04 07:46:05 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2020-08-28 20:46:19 -0700
commit908583ff00ed2b342fffc388e0a15693c2801bb4 (patch)
treeade7b409846c1c37de8e19c5633a1367a5d6170a /soc/swr-mstr-ctrl.h
parent08747bef396f04f38ea4632444c6e17cb232d69d (diff)
downloadmsm-extra-908583ff00ed2b342fffc388e0a15693c2801bb4.tar.gz
soc: swr-mstr: Fix random headset detection issue on scuba
When headset is inserted and reboot device sometimes headset is not detected after reboot as host_irq from swr slave gets masked. This is because of cmd error seen after clearing all irq which results in fifo flush. Read swrslave irq before clearing so as to resolve cmd error. Also enable slave irq only after clearing enum interrupt at master which results in proper enabling of irq. Change-Id: Id66029c65c4d813391bfeb8c0c619560f298eeab Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Diffstat (limited to 'soc/swr-mstr-ctrl.h')
-rw-r--r--soc/swr-mstr-ctrl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/soc/swr-mstr-ctrl.h b/soc/swr-mstr-ctrl.h
index 51b35386..f5365923 100644
--- a/soc/swr-mstr-ctrl.h
+++ b/soc/swr-mstr-ctrl.h
@@ -184,6 +184,7 @@ struct swr_mstr_ctrl {
u32 disable_div2_clk_switch;
u32 rd_fifo_depth;
u32 wr_fifo_depth;
+ bool enable_slave_irq;
#ifdef CONFIG_DEBUG_FS
struct dentry *debugfs_swrm_dent;
struct dentry *debugfs_peek;