Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp468303ybl; Wed, 29 Jan 2020 04:00:39 -0800 (PST) X-Google-Smtp-Source: APXvYqxUgBeXAGEhrfJKHAYiUCOWpLrTLCr6PU2AbTiwjpKIv/L7n+L7Ri9tUe4/NPgvRydN1mO6 X-Received: by 2002:a05:6830:18f1:: with SMTP id d17mr18187981otf.303.1580299238887; Wed, 29 Jan 2020 04:00:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580299238; cv=none; d=google.com; s=arc-20160816; b=d2Xj2neVwOFYPqyFjS+vpqbMiBD91YKRngFPQnMTtcvbdbZ1F6SqdoUgf6Fpxe/DR2 v5NwgUzBoNlyWwiG0P9ZuMCnCO9ZMjgHcLxTMCPf3VySCZcb6iWem4a2uFDn5FyjPNWx na3XJBHti9wVVMvadusEZk0t2S+4yM/WW8c+wF91LIxY1c1WD8VfAFoOnXR7SUI/8Q8J GZTL2H2XNHOeN5U6x5+6u1RQEe2YK8dMoSX/gBoLTJU4YdRsxzyIZDVk25vikj/5TbE7 nvbFktYNL1fBtM56S+sMGmwZR2F/2UmZ4dHkyZPppNliB1m5BrJflWWvR/jpJh2ph7an MXTw== 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=TsaMzEhZ0VQoTE2UajCoLduZxmDIBH/jFZKYOR4vpV0=; b=i6JXgR1E9GzeoaNbZhhxx7LGRIX9qNWCe2jkPi0hTrO5dPOFDTKpug4zGqd37gTrNj N8XnNfTlEdbM+P1rRViS4D+sIQfzVrefRiuDO9YTaK8gFpLADDz84fkNh5Fq+MGQdoYd NopYPuXwgjqBN50rl6rmAZne1RY+E0yzyrI8zQZQ2d12V4Qi73V9l3ejsCgppJIDWF9e IODPanPy93YTN5mpQ5Ka4AfAZi2Jwf5r+22PHAno0iYjLiSpaAFalmUGLekh3wNK066y 8w+xbsdR9vtjcwRLzI20bMXzEzlV5LHrui0RpVcbmCPjwJ7Z89EIY3uvwWwfQPwmWPqy 0CHw== 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 l15si846451oic.220.2020.01.29.04.00.25; Wed, 29 Jan 2020 04:00:38 -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; 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 S1726260AbgA2L7d (ORCPT + 99 others); Wed, 29 Jan 2020 06:59:33 -0500 Received: from esa1.mentor.iphmx.com ([68.232.129.153]:34584 "EHLO esa1.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726068AbgA2L7d (ORCPT ); Wed, 29 Jan 2020 06:59:33 -0500 X-Greylist: delayed 427 seconds by postgrey-1.27 at vger.kernel.org; Wed, 29 Jan 2020 06:59:32 EST IronPort-SDR: +iI0BjRVuvOjgbvcqHgxxLfxwDgAXPVWZhdrY8CEHBgdr4PZyqOjLtt3y3yVsie9tKn+gIfNK/ UuRd0/zNEg/zSSgXY+UUfT+E7RD/Zz3jcuZ+t2tQ46Q42NnQm039uOVUTv7qv2UiiMuKk9keK6 Vf0b8bWlMXfiHyULVzwM9R8L0ohVHoM3i0BxDv7DeiePTDw4NdJM9jgwZ27xAavhclRAPZYze7 wqjD9qxbnM1BjgJvJ1yVkVVqfde78pQJma/134RAnkccqv0yRYpGsTp0SPyEH01iihWJpd6XJn svg= X-IronPort-AV: E=Sophos;i="5.70,377,1574150400"; d="scan'208";a="47219317" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa1.mentor.iphmx.com with ESMTP; 29 Jan 2020 03:52:25 -0800 IronPort-SDR: 6DT1J8DgygeSeODfXba2E5y98oSykhyivTsvkj6BwLSUzh5+AQ4vPRkCXrywWnrzEGqG5tjAIk zIivE0J87TqQ== Subject: Re: [PATCH v6 24/48] Input: atmel_mxt_ts - make bootloader interrupt driven To: Bartosz Szczepanek , CC: , , , , , , , , , , References: <20191122082402.18173-25-jiada_wang@mentor.com> <20200127174127.25522-1-bsz@semihalf.com> From: "Wang, Jiada (ESD)" Message-ID: <4665e505-4f33-2a29-fc95-cacd40767e43@mentor.com> Date: Wed, 29 Jan 2020 20:52:19 +0900 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200127174127.25522-1-bsz@semihalf.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: svr-orw-mbx-08.mgc.mentorg.com (147.34.90.208) 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 Bartosz thanks for the report, I will test firmware update on my chromebook Thanks, Jiada On 2020/01/28 2:41, Bartosz Szczepanek wrote: > Hi, > > I've been testing this patchset on Chromebook equipped with Atmel touchscreen & > touchpad. In my setup, this particular patch seems to introduce a regression > on firmware update: > >> localhost /sys/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-6/i2c-ATML0001:00 # echo maxtouch-ts.fw > update_fw >> bash: echo: write error: Remote I/O error > > Kernel logs show that the reason is failed I2C transfer: > >> [ 111.632131] atmel_mxt_ts i2c-ATML0001:00: Found bootloader addr:27 ID:21 version:4 >> [ 111.637711] atmel_mxt_ts i2c-ATML0001:00: Unlocking bootloader >> [ 129.155091] atmel_mxt_ts i2c-ATML0001:00: Sent 1356 frames, 212224 bytes >> [ 129.263269] atmel_mxt_ts i2c-ATML0001:00: The firmware update succeeded >> [ 129.263952] atmel_mxt_ts i2c-ATML0001:00: __mxt_read_chunk: i2c transfer failed (-121) >> [ 129.265072] atmel_mxt_ts i2c-ATML0001:00: mxt_bootloader_read: i2c recv failed (-121) >> [ 129.265588] atmel_mxt_ts i2c-ATML0001:00: Trying alternate bootloader address >> [ 129.266375] atmel_mxt_ts i2c-ATML0001:00: mxt_bootloader_read: i2c recv failed (-121) > > Surprisingly, only touchscreen device is affected. When I checked out to > 119e1b7e8481 ("Input: atmel_mxt_ts - refactor code to enter bootloader into > separate func") all worked fine. In between these commits I got some mixed > results, including timeout while waiting for completion: > >> [ 190.006174] atmel_mxt_ts i2c-ATML0001:00: Found bootloader addr:27 ID:21 version:4 >> [ 190.317819] atmel_mxt_ts i2c-ATML0001:00: Wait for completion timed out. >> [ 190.318267] atmel_mxt_ts i2c-ATML0001:00: Update wait error -110 >> [ 190.319310] atmel_mxt_ts i2c-ATML0001:00: Unlocking bootloader >> [ 208.369825] atmel_mxt_ts i2c-ATML0001:00: Sent 1356 frames, 212224 bytes >> [ 208.536942] atmel_mxt_ts i2c-ATML0001:00: The firmware update succeeded >> [ 208.544835] atmel_mxt_ts i2c-ATML0001:00: Family: 164 Variant: 14 Firmware V2.3.AA Objects: 40 >> [ 208.547623] atmel_mxt_ts i2c-ATML0001:00: Touchscreen size X4095Y2729 > > Some more details - the touchscreen device reports itself as: > >> atmel_mxt_ts i2c-ATML0001:00: Family: 164 Variant: 14 Firmware V2.3.AA Objects: 40 > > Due to Chromebook limitations on kernel version, I'm running 4.19 kernel > with patches backported from master (so that atmel_mxt_ts is aligned between > master and 4.19). The platform is Samsung Chromebook Pro. > > Best regards, > Bartosz >