From c3e5288ca0966ccab967a8a56ee68bbc48f90e43 Mon Sep 17 00:00:00 2001 From: Shrey Vijay Date: Thu, 16 Mar 2017 18:24:00 +0530 Subject: 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 --- include/linux/i2c/i2c-msm-v2.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/linux') 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; -- cgit v1.2.3