Received: by 10.223.185.116 with SMTP id b49csp5516403wrg; Tue, 27 Feb 2018 15:00:04 -0800 (PST) X-Google-Smtp-Source: AG47ELvpW1M34WrNqUpbNvLkNApTJ1mTBuTC360H3/0ugYWMNaiCFBZNgTkhBAR5b2BUqHBy6O7j X-Received: by 10.99.47.132 with SMTP id v126mr6551895pgv.42.1519772404845; Tue, 27 Feb 2018 15:00:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519772404; cv=none; d=google.com; s=arc-20160816; b=V/0OTdUErf3ryFHmpBSF0uu+dlIvCPyQM+a8t9e2iE6t12+Dj1AB/gu0VD3jrpRpyV Pr0HRPR4pIuWMkiXcu11+Rsyrs1ita/72rIuz53pee8kC1e4XzXv6oxG3OO73wKgH0RF 9UvZlKbisugzrb+2mVfi01ysXbjMUxHv1dotPAZekqy23JlwnZTN7hK1z31QM7N14GOz Mgv3KId6bPg8b1zsG8sNMsrtb5pNknpUo36XVA+4vvBJvZE38Y053NSFanMrEXaocAaq 846SrjDIQgRnfIllx/1bYG/4HV9t+ok/zVl+T8Kv+an/fM6/M/7T2AjLc78puBRQyVUr hzCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=J5mUQTbzkRNPK/E1V6m4fFnaC7k83zzfBaKv5Ji2LNk=; b=LzeGrKVH44hni2+p4jqBvG/nE42Flfq3eP/+6OPrT9mQuEsBsd2RNJbRA1AQRmoJhR ujfgH8Tc4m0NYoXAg8XJeiiWGUIHSca/zbRG9K6Q7+P3gpvYS+5s/0BQN7QLeCovFstD amWi/Aiw4PPHmxr+veYK+cW6llZhyKoqfXNLC2pzOwJ8frrmh4b/3vrSYKTZUBep9AbC GTewqU7qblcAcZFT0/5WhaGebK0a12+AkTkp9ACqmE5bP3dQfL8YvbI1pnM3/Bc5eii7 m25xICn3TcRpyVmozBxPubIyGBcj0P3nEN5FErKOrYzSTHAQ29i4j9q3hwI/ZaQMXYFj sJcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Su41ORQG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k8si169848pfi.3.2018.02.27.14.59.49; Tue, 27 Feb 2018 15:00:04 -0800 (PST) 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=@linaro.org header.s=google header.b=Su41ORQG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751882AbeB0W7A (ORCPT + 99 others); Tue, 27 Feb 2018 17:59:00 -0500 Received: from mail-io0-f193.google.com ([209.85.223.193]:42680 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751748AbeB0W66 (ORCPT ); Tue, 27 Feb 2018 17:58:58 -0500 Received: by mail-io0-f193.google.com with SMTP id u84so1085905iod.9 for ; Tue, 27 Feb 2018 14:58:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=J5mUQTbzkRNPK/E1V6m4fFnaC7k83zzfBaKv5Ji2LNk=; b=Su41ORQGodhCInjVFNDzfkkl/QXKbpUGIc3Z4IR322Kx0UxxcDDMF0fNbisuSnJVqy PFsxgcM6mZsU5zPmz37XUZPxzxVxztv7JydalI/VMgDNN4ZFG9Eq0fINEg+f2VZ/Yvza OBZIaoVWYUQYUulRpmWpKjtENV5L+hXrU6ieg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=J5mUQTbzkRNPK/E1V6m4fFnaC7k83zzfBaKv5Ji2LNk=; b=TGuwzpjaH9a3rZDqVmG9l8FL9jpfNWA7iNMI8MmwutqnuY1NWebWFWX4bqhcEZ0TXn O815yrMaJ9mB6lyMni/99wD+qZDGmuUfxf5UFFDT+N/Ryxv9gAO0pPJtuQ0hNf1yAV/Y 7gYLNWDOq1PYRq8GiYS4g9YbGyhm0p7N4GTKBQP0xb506HlieApXs0mjwOPFy8weKZON EOf72jX6iI+eLLAZxuK++6VaV0fVbbz4sQh/7TY2TZEE9vmyBgXsf1ROPQE59THOw8xv ZjjHwG4aH6Eo3S3u9wB7+G/HMMYBF7ymaWG3gz5uo8v6FHh0lNwCxUzb23Wg/HVbJ8Ry qDeQ== X-Gm-Message-State: APf1xPBy4Ys1CAQOM2XWOFCmAJUH3etkJ6jXlxbT8sFahqOAOn7o2wGO mnA8TS7K1KJNyDI0U26v4svu2Q== X-Received: by 10.107.144.197 with SMTP id s188mr17491036iod.53.1519772337818; Tue, 27 Feb 2018 14:58:57 -0800 (PST) Received: from localhost ([2600:1700:8c61:6240:20cb:1985:36b:544f]) by smtp.gmail.com with ESMTPSA id s1sm158848ioe.79.2018.02.27.14.58.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Feb 2018 14:58:57 -0800 (PST) Date: Tue, 27 Feb 2018 16:58:56 -0600 From: Andy Gross To: Abhishek Sahu Cc: Wolfram Sang , David Brown , Sricharan R , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 06/12] i2c: qup: proper error handling for i2c error in BAM mode Message-ID: <20180227225856.GG20901@hector.attlocal.net> References: <1517644697-30806-1-git-send-email-absahu@codeaurora.org> <1517644697-30806-7-git-send-email-absahu@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1517644697-30806-7-git-send-email-absahu@codeaurora.org> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 03, 2018 at 01:28:11PM +0530, Abhishek Sahu wrote: > @@ -841,20 +856,12 @@ static int qup_i2c_bam_do_xfer(struct qup_i2c_dev *qup, struct i2c_msg *msg, > goto desc_err; > } > > - if (rx_buf) > - writel(QUP_BAM_INPUT_EOT, > - qup->base + QUP_OUT_FIFO_BASE); > - > - writel(QUP_BAM_FLUSH_STOP, qup->base + QUP_OUT_FIFO_BASE); > - > qup_i2c_flush(qup); > > /* wait for remaining interrupts to occur */ > if (!wait_for_completion_timeout(&qup->xfer, HZ)) > dev_err(qup->dev, "flush timed out\n"); > > - qup_i2c_rel_dma(qup); > - So this really only works due to the previous patch that adds the flush/eot tags to all of the read messages. If the answer to the previous question is that only the last read message gets the eot/flush, then this code needs to remain in place. Otherwise, it's fine. Andy