Received: by 10.213.65.68 with SMTP id h4csp1169323imn; Sat, 24 Mar 2018 05:23:18 -0700 (PDT) X-Google-Smtp-Source: AG47ELti0hFQefuc0bCD+zSf071lOU4vnQr7wYv5aXIxeGtbCYtOWVSrES3PdPEJ5ZdX6JVi7N9x X-Received: by 10.101.75.12 with SMTP id r12mr6850100pgq.36.1521894198056; Sat, 24 Mar 2018 05:23:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521894198; cv=none; d=google.com; s=arc-20160816; b=LHze9+l592amHyNXLMKZt5VkyQqgh2zjd7Jjd8WLsArhW1tYFTjDgMkk2MTFCk/jta oVzdlzPbGZd7KZVX4xqb9PaoYbOx40WqML/xZjm54MHgzftuUdHOatZSzGhv6Pfgsb2+ 0OsFCWLdsXtk5YDt66syBQbxxdA1iWV6cC4DoO61GPSVTSw7QTVUN+AOeYabaMnJ46iR 36ytIFSYmuk3b4QPN5jbZWajXcEIENGeitggROpfpTgw5q6s53hR3HF9z3dN5nlb9J+G kqmQTeoQpD8GyUMuqOoD3oz58NxyKk5USTw8lI83xGP+/LTFKHPg7vmOxRQ29TFskxGF uA8g== 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:arc-authentication-results; bh=Qw9t3RzjzotEY1cI8EJsta/tjCIT8Xjv8vdZC5PJcDg=; b=yWB1tzCMAOsXjr6iPTOfVbRTu0M8xWcry9uPAj0T+88SajSkp+cWrEFADgyp9m11Ep 9yyiAmYobOgWVj0c6DxgvoHMBG2T3quEE6yGj/gl4mG9VOvhu3u/WOyxmbn2UGRKvAgM 2ykn2XsJBF4FtMGAEzPIPkWu/aFYGf/VZny5EkX5GCh/Q4pHcFrmiZ47DIVNOKRPUAFD wHHam2BGOxxynNZMWVFO+z3NCNtC7vfCLHkWUCZAl7obP/T0xb1yiwd5hu2ViVUf6MLd 9rgnKRhTvi2SYJpf+0gsvcyTIP3d+cBIR5W976ryZdP5kWwqpIdawvYNgGws/QeqO/14 829A== ARC-Authentication-Results: i=1; mx.google.com; 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 v11si8303762pff.189.2018.03.24.05.23.02; Sat, 24 Mar 2018 05:23:18 -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; 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 S1751953AbeCXMWK (ORCPT + 99 others); Sat, 24 Mar 2018 08:22:10 -0400 Received: from sauhun.de ([88.99.104.3]:40826 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751879AbeCXMWI (ORCPT ); Sat, 24 Mar 2018 08:22:08 -0400 Received: from localhost (p54B33AE5.dip0.t-ipconnect.de [84.179.58.229]) by pokefinder.org (Postfix) with ESMTPSA id 2C86E45AA0A; Sat, 24 Mar 2018 13:22:07 +0100 (CET) Date: Sat, 24 Mar 2018 13:22:06 +0100 From: Wolfram Sang To: Abhishek Sahu Cc: Andy Gross , 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 Subject: Re: [PATCH v2 00/13] Major code reorganization to make all i2c transfers working Message-ID: <20180324122206.c4loxtob5o3lm7al@ninjato> References: <1520860502-14886-1-git-send-email-absahu@codeaurora.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="g656d5a55zjvfkaz" Content-Disposition: inline In-Reply-To: <1520860502-14886-1-git-send-email-absahu@codeaurora.org> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --g656d5a55zjvfkaz Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 12, 2018 at 06:44:49PM +0530, Abhishek Sahu wrote: > * v2: >=20 > 1. Address review comments in v1 > 2. Changed the license to SPDX > 3. Changed commit messages for some of the patch having more detail > 4. Removed event-based completion and changed transfer completion > detection logic in interrupt handler > 5. Removed dma_threshold and blk_mode_threshold from global structure > 6. Improved determine mode logic for QUP v2 transfers > 7. Fixed function comments > 8. Fixed auto build test WARNING =E2=80=98idx' may be used uninitialized > in this function > 9. Renamed tx/rx_buf to tx/rx_cnt >=20 > * v1: >=20 > The current driver is failing in following test case > 1. Handling of failure cases is not working in long run for BAM > mode. It generates error message =E2=80=9Cbam-dma-engine 7884000.dma: = Cannot > free busy channel=E2=80=9D sometimes. > 2. Following I2C transfers are failing > a. Single transfer with multiple read messages > b. Single transfer with multiple read/write message with maximum > allowed length per message (65K) in BAM mode > c. Single transfer with write greater than 32 bytes in QUP v1 and > write greater than 64 bytes in QUP v2 for non-DMA mode. > 3. No handling is present for Block/FIFO interrupts. Any non-error > interrupts are being treated as the transfer completion and then > polling is being done for available/free bytes in FIFO. >=20 > To fix all these issues, major code changes are required. This patch > series fixes all the above issues and makes the driver interrupt based > instead of polling based. After these changes, all the mentioned test > cases are working properly. >=20 > The code changes have been tested for QUP v1 (IPQ8064) and QUP > v2 (IPQ8074) with sample application written over i2c-dev. >=20 > Abhishek Sahu (13): > i2c: qup: fix copyrights and update to SPDX identifier > i2c: qup: fixed releasing dma without flush operation completion > i2c: qup: minor code reorganization for use_dma > i2c: qup: remove redundant variables for BAM SG count > i2c: qup: schedule EOT and FLUSH tags at the end of transfer > i2c: qup: fix the transfer length for BAM RX EOT FLUSH tags > i2c: qup: proper error handling for i2c error in BAM mode > i2c: qup: use the complete transfer length to choose DMA mode > i2c: qup: change completion timeout according to transfer length > i2c: qup: fix buffer overflow for multiple msg of maximum xfer len > i2c: qup: send NACK for last read sub transfers > i2c: qup: reorganization of driver code to remove polling for qup v1 > i2c: qup: reorganization of driver code to remove polling for qup v2 Applied to for-next, thanks! Also thanks to the reviewers! --g656d5a55zjvfkaz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAlq2Qu4ACgkQFA3kzBSg KbZ4zg/+J/sTd2ozEwrsjkkq/RoRlC4lONS5SuYX+mh/MYJ3bXhNH4M6adFgXZez eBq3iHgWaahOhowh/vUuCBsgVPq+1n3a8Ctg9guj7tQL0rVdGRbMYhdJudwTWmZq VcCtUDSnztWsAMjx6WVvSaHWH1u2fP3RSp0GMjT43GDMg2UwDStbQoDpIADhm8jI FBRSTwmN3WYERxDxe3JoTkWXJOgumWfTifWkH/KIPjKpzLbLydyZhgmIlvip7Ljg Yy2EECuavKHtH0dop85X5n6loK+gPVcU5Dl8YIuCPqB+Nn4tjKvUKcgXjtwea3Ip lGdovQtD9gM8nEto4B/ccbe1zy4Z9iQUSI+9SwEjz5oH9ovelREi3VtAW/0hvPa9 YaXSJOHIxEpooTK+jYVj8CmFxUWVY8/YjfDrwWFDa4d5fLaGRF9aTvcy77Chw236 TN4tp07vFfeblSFCZz9QIRRiEt194537KJCuFlN2iBwaL6dIg+KXjgWvUXbFaIkj iM/sCWT7uwTq/mEMASyWs6fhXt+ESw+Tqbr5JdAcuSjRhynqoTCTO2W6EMYV7WvC qzLJFLV2cCs3j8B3cENjtsVPnq3ga1GAvJKp3wAMjxTxYfaXFzHLWQ2RtYjPZBRz 7vb8vY/BZJ4qWj10v/GFQPOM4H6pFZB4JzfVJdR4W/+9nqUkzXs= =o5Rv -----END PGP SIGNATURE----- --g656d5a55zjvfkaz--