Received: by 10.213.65.68 with SMTP id h4csp47139imn; Mon, 12 Mar 2018 06:19:09 -0700 (PDT) X-Google-Smtp-Source: AG47ELs3aCmUBgXhE79m4yGNUQU6MGdSa9KTooNiGEXkFUc21oUSJWqtPzzq9x8f3QOa3joSAAlv X-Received: by 10.98.202.23 with SMTP id n23mr8010671pfg.52.1520860749631; Mon, 12 Mar 2018 06:19:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520860749; cv=none; d=google.com; s=arc-20160816; b=XNIgOzYK6s2LV8DM7t6inXczcZTza4DCgPnlhqAp5wVWRG92BeVkaCWuQjkIPYJd1V N1vAroFDnkKoy65ZOnyuO/fx/hXM++BKJgFVS+fOV/JIalrrKDgJbf+C6M4Aha4/POvO sPcHEp/4LAHGtoQaz30lMVFk68UtlOavIK2MljtMIKxDpbl/gtcX3ZTlhlhjV5a8NHX7 416LyHMKeRo749qJG8MIzo79x+6rY6eQx/CZoAShProf0l3lwwhTZfapAW3ThLhKx7Kn meTJyyHw+KSOuJOX7zpXt/miJsbggETrVNZTe2se7am/EuApYDM6cPKQ+tUwMkmNxIZH zCIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=pjogxsT5lF17QHC6n5N1uhdiBD0Dr+g8fYJC+AGSCyE=; b=iO+VZskujhKKlQHLl1j8QvAsMIT1cYMITgEfO5u8v2KyMSXkaoQJHgFPeOUYQbD4pS tandvL/VrP/a5+QrjiMWoN6u3Pkx4v2UtqrhIjZh8VTGwAU/M984czyJ9C+ey53hHzz7 3CIXQqW3PE0cnHq07krj6B6plUEFE06NgTZ7/DpQd0T0GGD5U/Xovm81iz9/niX3iJAM oflV1vMK7h3pudEyXHOl1hO3Carxr2mjV9mXezUqUh3nFW5OhP9KQHtKLegJwNPeZJZo ARc54bP3KxzuVyi7lSAN1h26/sZZMB0j4/6A4/x/jCNYzuv1rQ045OC4SUT9nz5gR6L/ salQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=GH4j15V3; dkim=pass header.i=@codeaurora.org header.s=default header.b=RDWvjUAn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f9-v6si1850725plt.502.2018.03.12.06.18.54; Mon, 12 Mar 2018 06:19:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=GH4j15V3; dkim=pass header.i=@codeaurora.org header.s=default header.b=RDWvjUAn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932261AbeCLNPo (ORCPT + 99 others); Mon, 12 Mar 2018 09:15:44 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:41960 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932222AbeCLNPk (ORCPT ); Mon, 12 Mar 2018 09:15:40 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 577CE607F5; Mon, 12 Mar 2018 13:15:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1520860540; bh=I+mDGT5EHcwoaKgLS1NEQajCUwotq3YTcZCi3HwSsF4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GH4j15V302/zzW2F+j7mRh+JetcDqpAwdmD4IGhkgs2hzJa+TtL5AVvO1DJQK0a3b n8OlhxKk2OTO+T5JEimChbeQYcvHdGgs2Cx0xOcQ5Yo0s+g86Ye7HZL5kj6Y/eBf1b xbQRl1B5NR0gFu12mnEbLp/2E3c0hupLoIrOm/vU= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from absahu-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: absahu@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id D632D607F5; Mon, 12 Mar 2018 13:15:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1520860539; bh=I+mDGT5EHcwoaKgLS1NEQajCUwotq3YTcZCi3HwSsF4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RDWvjUAnT/qqj0hn1khKUrI4k58aK3Tx8Hko9i3mry4Lc0by0Bdw1a4ZS6bfT5hnQ R8XGGeC4JY9mgP7TQFm2VZKMvfar/Di73UcfHX2koNUnCsT4K+1EgAjyuW2afFtzbB dJp0ln/HBdSngk3MVmDdOCJ/TmN5aa6YMQgjS6Do= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D632D607F5 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=absahu@codeaurora.org From: Abhishek Sahu To: Andy Gross , Wolfram Sang Cc: David Brown , Sricharan R , Austin Christ , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Abhishek Sahu Subject: [PATCH v2 06/13] i2c: qup: fix the transfer length for BAM RX EOT FLUSH tags Date: Mon, 12 Mar 2018 18:44:55 +0530 Message-Id: <1520860502-14886-7-git-send-email-absahu@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1520860502-14886-1-git-send-email-absahu@codeaurora.org> References: <1520860502-14886-1-git-send-email-absahu@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In case of FLUSH operation, BAM copies INPUT EOT FLUSH (0x94) instead of normal EOT (0x93) tag in input data stream when an input EOT tag is received during flush operation. So only one tag will be written instead of 2 separate tags. Signed-off-by: Abhishek Sahu Reviewed-by: Andy Gross --- * Changes from v1: None drivers/i2c/busses/i2c-qup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-qup.c b/drivers/i2c/busses/i2c-qup.c index b2e8f57..73a2880 100644 --- a/drivers/i2c/busses/i2c-qup.c +++ b/drivers/i2c/busses/i2c-qup.c @@ -774,10 +774,10 @@ static int qup_i2c_bam_do_xfer(struct qup_i2c_dev *qup, struct i2c_msg *msg, qup->btx.tag.start[0] = QUP_BAM_INPUT_EOT; len++; - /* scratch buf to read the BAM EOT and FLUSH tags */ + /* scratch buf to read the BAM EOT FLUSH tags */ ret = qup_sg_set_buf(&qup->brx.sg[rx_cnt++], &qup->brx.tag.start[0], - 2, qup, DMA_FROM_DEVICE); + 1, qup, DMA_FROM_DEVICE); if (ret) return ret; } -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation