From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752755AbaGGLi2 (ORCPT ); Mon, 7 Jul 2014 07:38:28 -0400 Received: from kdh-gw.itdev.co.uk ([89.21.227.133]:62580 "EHLO hermes.kdh.itdev.co.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751939AbaGGLiY (ORCPT ); Mon, 7 Jul 2014 07:38:24 -0400 Message-ID: <53BA86AB.8050603@itdev.co.uk> Date: Mon, 07 Jul 2014 12:38:19 +0100 From: Nick Dyer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Sekhar Nori , Dmitry Torokhov CC: Yufeng Shen , Daniel Kurtz , Henrik Rydberg , Joonyoung Shim , Alan Bowens , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Meerwald , Benson Leung , Olof Johansson Subject: Re: [PATCH 00/15] atmel_mxt_ts - device tree, bootloader, etc References: <1404399697-26484-1-git-send-email-nick.dyer@itdev.co.uk> <53BA82A4.5070104@ti.com> In-Reply-To: <53BA82A4.5070104@ti.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/07/14 12:21, Sekhar Nori wrote: > I was unable to get the touchscreen working on my board after applying > just these patches. It does work correctly with your for-next branch so > I guess I need to wait for you to post the rest of your patches too. > > Here are the relevant messages at boot. Full boot log is available here > (in case you want to have a look): http://paste.ubuntu.com/7759703/ > > [ 2.315717] atmel_mxt_ts 0-004a: Direct firmware load failed with error -2 > [ 2.322949] atmel_mxt_ts 0-004a: Falling back to user helper > [ 5.934924] atmel_mxt_ts 0-004a: Wait for completion timed out. > [ 5.941237] atmel_mxt_ts 0-004a: Warning: Info CRC error - device=0x000000 file=0x8EE45C > [ 7.294769] atmel_mxt_ts 0-004a: Wait for completion timed out. > [ 7.300976] atmel_mxt_ts 0-004a: Resetting chip > [ 10.574729] atmel_mxt_ts 0-004a: Wait for completion timed out. > [ 10.581010] atmel_mxt_ts 0-004a: Error -110 updating config > [ 10.626788] atmel_mxt_ts 0-004a: Family: 128 Variant: 1 Firmware V1.6.AB Objects: 17 > > One key difference is that these patches try to load the config at > probe where as with your -next branch that is avoided in the DT case. > This is also missing the new update_cfg sysfs interface (which I guess > you will post as follow-on patches). > > The wait_for_completion() times out because the interrupt never > arrives. Even later when testing using evtest, I do not see interrupts > coming. There are only two interrupts that arrive during boot and it > stays that way. There is something going on with the way interrupts are > handled. I havent debugged further yet. This problem is not there with > your for-next branch. Thanks for trying this, apologies that it didn't work. Looking at it, I've a feeling that this is the solution for the issue you see: https://github.com/ndyer/linux/commit/4e8f8d56361b09a2a Although, the fact that it says the device is reporting the Info CRC to be 0x000000 is rather odd, as well. It would be useful if you could turn on all the debug in the driver and re-test (#define DEBUG 1 at the top). However, if you don't have time, I will try and reproduce on my test system. cheers Nick