Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp303952ybb; Thu, 9 Apr 2020 23:55:20 -0700 (PDT) X-Google-Smtp-Source: APiQypI1/8ScVB5Y3u1xSIp4MA2qwZdW/CSbXnwPEEzEa5RMo7NKH+IYOQYGKJCy3NcVd+NcgLba X-Received: by 2002:ac8:550b:: with SMTP id j11mr3124257qtq.157.1586501720232; Thu, 09 Apr 2020 23:55:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586501720; cv=none; d=google.com; s=arc-20160816; b=n7Flt+pgJI8y9++d69MtrvPnfMfJpGWFyp19RnazmeTX89FzSJ2psf5Kpbgw8k/ZHi guQxdyASyN8cBTQ2bpBBNxp05NQ6j37aV3j5gt1z5DT6zUnnRg/Qn29JDwH4TWO/S9SF yGsfXbpudTtBT7WhfXw82vw7hdj9R2Ben1fihrYfhpIHFx0yCDYS5RYIujmnqPlbwMel owAClOzk5jom1x+JdCnU4mpVjWUvD1NM3YNSJI/DY/ERnjzIo4KxMWF3FabAyjm+5ZOX LGUSkoa0e/i60VKE7+EVqyrVt1hx2u/6zhho7qPJlU4bBV6pzVpRKL2w//st9xlQ+IEC OqOA== 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=YkMO2fNcT6klTCGd7fbZU4Lh1jJF6tdyjaGK2tTw1Ag=; b=pLDxv3J9Ihx1HeK9H2R4JliBh43XtaKN+O8Y9B1zqnJrUdXO/6lzei+J6i/ULvGiru byUDFUIckMjx0TSx1tFecK1TQ2wls7dS5UnUXFoJYQqDFJABd8Q2eYTo2yfE9oGMwSaF f20IMDz3LC9uvhMfFZx6ik69+lOeLHz9GpE+51AJnU9WjZWvrwhPI3O+IPya72IeygJd mKq1W9XAWnakSrdN3ZScM5FBgOKLjlLkbN+KoqMznInUWsN3lT3NKwB1YYYPTOsi1FQg bQMeNse6g8kh2N3ZUipDXY1meZY5FeHBhxREtU70aDCUnklgSWy4+UDBiC/ge2jkUiWA PQcg== 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 q27si671151qtq.2.2020.04.09.23.55.05; Thu, 09 Apr 2020 23:55:20 -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 S1726143AbgDJGxo (ORCPT + 99 others); Fri, 10 Apr 2020 02:53:44 -0400 Received: from esa2.mentor.iphmx.com ([68.232.141.98]:3985 "EHLO esa2.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725844AbgDJGxn (ORCPT ); Fri, 10 Apr 2020 02:53:43 -0400 IronPort-SDR: U2DmNUMOmEaRTNv3w56LX2kzv2X4EyQNLqsJHagvuuLkFcEh0QCnfRkbPj0CqY3tETT/9ZWrAN TPzGuUq8gvgAOas9aAEjwhgGsj93XFWoUCah8SGxUBcX4PF8klxzDljwc6Ny7S9UsYZJNxynuX 9GfAp4+D8FSpQx6NFMOU7PGzNkJ/tH3At+0NQ6XAvY7lbQoPdIA1kYDP05rWC4CLH5naIpHtR9 rlMq5vuTZmhSWWT96GxxalWF0EXMJEzwU+RBUgUAi3gBy1rHnyq9oHhcPH0DrTOd9tCqw5Yosf GNc= X-IronPort-AV: E=Sophos;i="5.72,364,1580803200"; d="scan'208";a="47549097" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa2.mentor.iphmx.com with ESMTP; 09 Apr 2020 22:53:43 -0800 IronPort-SDR: KfhfzDl3cuQJF/PMnO2Z0QuhtBDRaI6p2RHRH4v0qywLwCY2YFPNiVRZMuRmgchkCvAMJWW991 hQ/E3XQ+Yw8qh1w/vhcpMgHkVT2UYSJduS/Sgp/Bx32dSV+nYGhzruJUgIMxA+oXSZkDe4vGsF 5IXf0X9dWkKyEgfuJsRIP9E0lKmlB13n+hcbopky5TJfihxTYmOzdF8lyYSJaNEWc93WVXUmfZ XV6YyQt6XQWyXbOahEWSG4adErPVhs5SIronAS9J4QIYTOW7U+7KkqZ3pP1Qu/1AGWZUTjk4b6 dBY= 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> <5abe310f-094c-9355-d533-fb64efcbf726@mentor.com> <270812bc-8c2c-c564-be8e-4cc18de8670f@gmail.com> From: "Wang, Jiada" Message-ID: Date: Fri, 10 Apr 2020 15:53:38 +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: <270812bc-8c2c-c564-be8e-4cc18de8670f@gmail.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-ClientProxiedBy: svr-orw-mbx-03.mgc.mentorg.com (147.34.90.203) To SVR-ORW-MBX-04.mgc.mentorg.com (147.34.90.204) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dmitry On 2020/04/10 0:10, Dmitry Osipenko wrote: > 09.04.2020 09:25, Wang, Jiada пишет: >> 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. > > IIUC, the transfer's limitation is a part of I2C controller hardware and > not the touch controller, so it should be wrong to describe that > limitation in the maxtouch's DT node. > > I meant that we probably could set the data->mtu based on > i2c_client->adapter->quirks->max_read and then the DT property shouldn't > be needed, couldn't this be done? >Thanks, now I understand your point, and yes, by this way, we can address the I2C controller limitation issue by its own configuration. I will replace this commit with your proposed solution Thanks, jiada > The I2C core only rejects transfers that don't fit into the > max_read/write_len and nothing more. >