summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorShrey Vijay <shreyv@codeaurora.org>2017-03-16 18:24:00 +0530
committerShrey Vijay <shreyv@codeaurora.org>2017-03-17 16:36:51 +0530
commitc3e5288ca0966ccab967a8a56ee68bbc48f90e43 (patch)
tree43d79f74fb637c7a3ebf5831d77154e53256a7cc /include/linux
parent89bfd053bfb4afb40d86f58de52cb7b1433dccba (diff)
i2c-msm-v2: Create rx completion object for dma mode
Use dedicated rx completion object for DMA transfer mode. Currently a single completion object is being used for tx, BAM driver can signal for tx complete while there can be rx process in active stage. Resulting in BAM_ERROR_IRQ for the pipe connect as part of the next BAM transfer. Use rx completion callback to wait for BAM to complete rx transfer. Change-Id: I65677ed0791c231622a0c33b44f619675a3d8f93 Signed-off-by: Shrey Vijay <shreyv@codeaurora.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/i2c/i2c-msm-v2.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/i2c/i2c-msm-v2.h b/include/linux/i2c/i2c-msm-v2.h
index 54974c02725d..468a1d6fa58d 100644
--- a/include/linux/i2c/i2c-msm-v2.h
+++ b/include/linux/i2c/i2c-msm-v2.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2014-2015,2017, The Linux Foundation. All rights reserved.
*
* 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
@@ -552,6 +552,7 @@ struct i2c_msm_xfer {
int msg_cnt;
enum i2c_msm_xfer_mode_id mode_id;
struct completion complete;
+ struct completion rx_complete;
size_t rx_cnt;
size_t tx_cnt;
size_t rx_ovrhd_cnt;