Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1340554ybb; Wed, 8 Apr 2020 23:26:17 -0700 (PDT) X-Google-Smtp-Source: APiQypIjQ6khoyQ+ToDaBDCIw3lDIYuXf/FtXcjhZOyxR5Zg6dsL+MKQ1y8MtVaCbZBfQE75lMvo X-Received: by 2002:a9d:6a02:: with SMTP id g2mr8857284otn.196.1586413577586; Wed, 08 Apr 2020 23:26:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586413577; cv=none; d=google.com; s=arc-20160816; b=plgKj8Ixd1P98LJE1/eUWfstZ8PlYU4I5WTQDiMOw1ffgR7AKH03ZqPatzld8rZISf xrR6GflB34JV3sRIm/1Muh3wjVcWzmW/MD+i/5fAyxh8DgdpqNdJ82OH8XdxQL0vFl7h 9uqBst0TBU0TQYn076p3dCRc3TaF8OntVi08yJg2dYuZwofldNm1q0MFFInIZSXaoOV2 RMbuJxgDTkgTLW8fIqUAy/mfyGyGShA0FPUt4g2spTDzczrnC8R7kAvqRyTCQLdKJS11 EtdIbfzldOG2miDST6cQaPj9LFl4GJcGgjTBs+8nGLVSL/JBCIzfnJ30pLtWE7m6uSky l6gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=VIb2Y505MIiqYuMm3NqkOp1z4+BcFdWbavd97xcmjMw=; b=Jcv1tAUTTZ4EUuXSNx5tgUTb2hWSYwkuu6PRH4v5zOgrzOmTsyXfD7RpwOZ9DIvalH peazKahYT4WYMIKSY4OQWoZJ6yI8RqwL4wRBPhDsjzDscOPH4dNghSKtJYrGzWeGSYNR UczsJz+n9God3KsbQ684bOm7xmBX7qq6bt9fGXq1DzVaksKzAKN9OJTAtn5nKOqMqcm2 /YM9UmkzzSyvYHjjYrkPWn5R+EApRgJzGiR6H7POE0kQVxvmSf2v6wGEhwGlnci0KXQJ yhHibx6Tth0yD3SiXp2HK9h+Vx1ZV+1jOvGVReXATiU0ABdGpWygtUjM/Cf9HUYBNxP1 0hsA== 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 s199si2952923oih.169.2020.04.08.23.26.02; Wed, 08 Apr 2020 23:26:17 -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 S1726082AbgDIGZV (ORCPT + 99 others); Thu, 9 Apr 2020 02:25:21 -0400 Received: from esa4.mentor.iphmx.com ([68.232.137.252]:43574 "EHLO esa4.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725783AbgDIGZV (ORCPT ); Thu, 9 Apr 2020 02:25:21 -0400 IronPort-SDR: dafdDJP0RaCgHTSueUstCenKWbqFRbB0PqudBDEh2MYvT3x1ExYPGl0iqsyYR40BCWappZcPp2 reRoFymGntKPCkzzHNbnyPfIlIrCc3D3GM1ZzTMykbrawrVnFwG3XP67furFSbp/1maZvNXDHa dAYvoHqByVa0fthr6eX7xwNyYHieAeiQhpiJEWgR72hmA1+4RBQAvBNU/A0yf8U2FAbK3bPpFN u81+3CkzCcmMhbNT1W0KWhkkKM37/oARxjQeqYlFKHdBm75oQSr/oHxuhFy3FE3pyi/YPf15lH zp0= X-IronPort-AV: E=Sophos;i="5.72,361,1580803200"; d="scan'208";a="47638267" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa4.mentor.iphmx.com with ESMTP; 08 Apr 2020 22:25:20 -0800 IronPort-SDR: Lz2cfuUitvx1f/tgahpSs/gQ+32w/hm4kADV5An3Z2mJRJ9YpyPaE1rRAi/T/J09G6uFZ+SuXY vgSvsrXTnmO6SilOyUgk7p/dB93o7t86C2Vmh5WopQiCjBX5J8f3izKTeuhoAis0vUI26AQiyr EpBv9b2QtsDRXVd75cNI16rILsQ8tgaQxeBghlBypdu0EGLAb+PXhiJ9OSgQzY0uGisqKOZ+d3 TqekwoE+vhZa0uiGAMWvg8Kfi/g3PLXFMD3pPFUc+c4Cfr9ddSz5RNBJqFNW/wFN0pQxIp8tT6 u9o= Subject: Re: [PATCH v10 43/55] dt-bindings: input: atmel: support to set max bytes transferred To: Dmitry Osipenko , , , , , CC: , , , , References: <20200331105051.58896-1-jiada_wang@mentor.com> <20200331105051.58896-44-jiada_wang@mentor.com> <9b98a3fc-b7ee-fc01-dc5c-248df507d4a2@mentor.com> <008d019c-2de7-4fe4-0c22-2668312f808b@gmail.com> From: "Wang, Jiada" Message-ID: <5abe310f-094c-9355-d533-fb64efcbf726@mentor.com> Date: Thu, 9 Apr 2020 15:25:15 +0900 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <008d019c-2de7-4fe4-0c22-2668312f808b@gmail.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SVR-ORW-MBX-07.mgc.mentorg.com (147.34.90.207) To svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dmitry On 2020/04/07 23:47, Dmitry Osipenko wrote: > 07.04.2020 12:27, Wang, Jiada пишет: > .. >>> Is this a software (firmware) limitation which varies from version to >>> version? >>> >> >> the timeout issue trying to be addressed in this patch is from software, >> one of our board a Serializer/Deserializer bridge exists between the SoC >> (imx6) and the Atmel touch controller. >> imx6 i2c controller driver has a timeout value(100ms) for each i2c >> transaction, >> Large i2c read transaction failed to complete within this timeout value >> and therefore imx6 i2c controller driver aborts the transaction >> and returns failure. >> >> Therefore this patch was created to split the large i2c transaction into >> smaller chunks which can complete >> within the timeout defined by i2c controller driver. > > Isn't it possible to use the max_read/write_len of the generic struct > i2c_adapter_quirks for limiting the transfer size? > > BTW, it looks like the i.MX I2C driver doesn't specify the > i2c_adapter_quirks, which probably needs to be fixed. > yes, i.MX I2C driver can specify i2c_adapter_quirks to limit the size be transferred in one transaction. But even in this case, mxt_process_messages_t44() fails when it tries to transfer data count larger than max_read/write_len set in i.MX I2C driver, which we would like to avoid. Thanks, Jiada