Received: by 10.192.165.156 with SMTP id m28csp1575733imm; Tue, 17 Apr 2018 01:29:51 -0700 (PDT) X-Google-Smtp-Source: AIpwx49sbBUKUdeg+Mkhtdxr1iuY0FsnhDIrcUOJ5rC2oFw697Wf90J59iEOjSrTLZPcIN0wY1Mp X-Received: by 10.99.97.139 with SMTP id v133mr989834pgb.285.1523953791837; Tue, 17 Apr 2018 01:29:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523953791; cv=none; d=google.com; s=arc-20160816; b=hc4ko6uBN/kO/rQAqSq1XrMIxdj3eKXCCOek+2ZyVUHhxwuNJwoh1xvqNzeutBDkug gHG9C/CWfrCB/l9gqV4lqWOlWOZj9EDIgwGe2EEDIfEtVWJYJBzQ1mi122J2wQP8jYuj mNuqPHHrqh8IH1Cz2XAuy4Wus9ki5HnTkLpiFFeJjbeuPulZs78KuljfEWk9E5D5AQXZ m3pXS45ipOPr/lMwygrWSq/CbM2uPz4cex6zJQNMwHdb0kxB3ivGRLysklcDZP1JnEPv k1Z/odW3i+/+yhmozyKN41N+qaZHx1C3+0bLUhRQMRaF7c8OVoElNsNgZCrbgn+6b/z6 1tPg== 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:arc-authentication-results; bh=FuyEKyEuhqIIfgj4F+FpMDxcCNdxUo+dzLYANjxY0EU=; b=mGrsfggEYWct84RmZAhFxfqdgZddHMBjfDoPAEYrRxbN+DH1i2Ik+CBdrhmkMC6hh9 S7QV5FOD/OeDNjk9QTHfzkjxgvStntn/d7jgYiVW36/Y20vRI445m7IkC72U6HLNhtr0 snJkc3QWeWoXBhziqmuO0i2UjeOPwVFthuj0+pWBFBXp2ztR40QbfdPXIEW6e3ua5leF dv2axGQ+M1ru0ESS3y+W9eU+Vsbvb3dEtJIe0AMDc3Mgs7zUZrLrutunYcMit8seOcid 5V8XUKQngNJDuCfsf0BAf0VlHdRM4YYB7ZldLqt9hC7VkRg8IKPduzf7nTCmXctmavq8 KAjA== 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 o81si12719120pfa.64.2018.04.17.01.29.37; Tue, 17 Apr 2018 01:29:51 -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 S1752087AbeDQI1z (ORCPT + 99 others); Tue, 17 Apr 2018 04:27:55 -0400 Received: from mx0b-00176a03.pphosted.com ([67.231.157.48]:57604 "EHLO mx0a-00176a03.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751793AbeDQI1x (ORCPT ); Tue, 17 Apr 2018 04:27:53 -0400 X-Greylist: delayed 6439 seconds by postgrey-1.27 at vger.kernel.org; Tue, 17 Apr 2018 04:27:53 EDT Received: from pps.filterd (m0048206.ppops.net [127.0.0.1]) by m0048206.ppops.net-00176a03. (8.16.0.22/8.16.0.22) with SMTP id w3H6cZcM033872; Tue, 17 Apr 2018 02:40:33 -0400 Subject: Re: EXT: Re: [PATCHv1] Input: atmel_mxt_ts - fix the firmware update To: Nick Dyer , Sebastian Reichel CC: Sebastian Reichel , Dmitry Torokhov , , Henrik Rydberg , , References: <20180322164330.24809-1-sebastian.reichel@collabora.co.uk> <20180323194736.7fhgb6qjkwbivsvx@hairyalien> From: Nandor Han Message-ID: <18fcfdcc-d43a-6ee3-07d5-af618b600e12@ge.com> Date: Tue, 17 Apr 2018 09:37:54 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180323194736.7fhgb6qjkwbivsvx@hairyalien> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [3.159.19.191] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-17_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1804170060 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23/03/18 21:47, Nick Dyer wrote: > On Thu, Mar 22, 2018 at 05:43:30PM +0100, Sebastian Reichel wrote: >> The automatic update mechanism will trigger an update if the >> info block CRCs are different between maxtouch configuration >> file (maxtouch.cfg) and chip. >> >> The driver compared the CRCs without retrieving the chip CRC, >> resulting always in a failure and firmware flashing action >> triggered. The patch will fix this issue by retrieving the >> chip info block CRC before the check. > > Thanks for raising this, I agree it's definitely something we want to > fix. > > However, I'm not convinced you're solving the problem in the best way. > You've attached it to the read_t9_resolution() code path, whereas the > info block is common between T9 and T100 and works in the same way. > > Would you mind trying the below patch? I've dusted it off from some > work that I did back in 2012 and it should solve your issue. > > It also has the benefit that by reading the information block and the > object table into a contiguous region of memory, we can verify the > checksum at probe time. This means we make sure that we are indeed > talking to a chip that supports object protocol correctly. > Thanks Nick. This looks like a better solution. Sebastian will test this and we can see the results. Nandor