Received: by 10.213.65.68 with SMTP id h4csp629330imn; Fri, 16 Mar 2018 13:49:23 -0700 (PDT) X-Google-Smtp-Source: AG47ELsv3AeUhk+GPd9+PdD7LpEvsbHtkecKs4rjv4t6TQQVbzWp9k5ZfZMFTw0g2S5QYTCI57t6 X-Received: by 2002:a17:902:7804:: with SMTP id p4-v6mr3574118pll.17.1521233363327; Fri, 16 Mar 2018 13:49:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521233363; cv=none; d=google.com; s=arc-20160816; b=KhaVghtZxyih5hQmTI7orjgAYyLQf/KcyDc/8ChAP8qZB9ahoJr+cgn4MlC9hGWfnp IERlsBkvfu/dbhzfw9Q9O9kaUIgq7JklyOCV1/5AJypaaLz7NN3FRWuLWK/TK8naikAI QYCkDHcjv/6DJSulImJ4kIpDmgVSuyFQIEa1UdLIdK8wauXDbE5MaOSH+G4ewleFIQDF xrx8NzxBPQWIpPYOpDHnuSCiTTAu4+TEd/HIxF6LD1esw5vo6AHlcbip3hKXazkYOgeD hi+nJq/5l4y6Z9vhtCfFXHedz+PZnGFYG0MYhK/wnE3GZ6G2z7tFmLmcjmkoy7h8dF9h o2LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=MR80r0A5gr4mxvxM3W9vTtpIrbt/TgVk111MZ6I/7fo=; b=RahjtgvDMXkij/ra/5qO6df6s/OBynGRf9n5tfbdfHfm/R8WOw0lBhqmfHIfFYKPed 6crVfmADVBze4Jv6Jsu8HCFUJd882O5AHys7RD2iFuc5ZnbIx83FhCyi+JqVE+hb75qR GEIDSSCwFotmt8wMLjPJosEqB60bNsK2wOlJKJgOyHhNGXx2R6Vdciyo8g1UJbb47fOt kSNdAtk8QErES0j41qPEZBpq2YGdpxUsEIVHMDgLm+i8kfnpobk3+7N3oZjs7FGfbWWS XGPHPK8Ie3smfCCwBAzTO1+1QmXlxiFMED/GhCUZZ1/16LjC91Hw4OgenFZXNdFRzn8q PRJg== 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 v11si5597266pgb.652.2018.03.16.13.49.08; Fri, 16 Mar 2018 13:49:23 -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 S1751763AbeCPUrw (ORCPT + 99 others); Fri, 16 Mar 2018 16:47:52 -0400 Received: from bm.shmanahar.org ([80.68.91.236]:42384 "EHLO bm.shmanahar.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750877AbeCPUru (ORCPT ); Fri, 16 Mar 2018 16:47:50 -0400 X-Greylist: delayed 466 seconds by postgrey-1.27 at vger.kernel.org; Fri, 16 Mar 2018 16:47:50 EDT Received: by bm.shmanahar.org (Postfix, from userid 1000) id 0A3AD4C8014; Fri, 16 Mar 2018 20:40:03 +0000 (GMT) Date: Fri, 16 Mar 2018 20:40:02 +0000 From: Nick Dyer To: Dmitry Torokhov Cc: linux-input@vger.kernel.org, Benson Leung , Olof Johansson , linux-kernel@vger.kernel.org Subject: Re: [PATCH 01/14] Input: atmel_mxt_ts - do not pass suspend mode in platform data Message-ID: <20180316204002.GA24333@bm.shmanahar.org> References: <20180312190907.174301-1-dmitry.torokhov@gmail.com> <20180312190907.174301-2-dmitry.torokhov@gmail.com> <20180314205123.GA26353@lava.h.shmanahar.org> <20180315235621.GA60361@dtor-ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180315235621.GA60361@dtor-ws> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 15, 2018 at 04:56:21PM -0700, Dmitry Torokhov wrote: > On Wed, Mar 14, 2018 at 08:51:24PM +0000, Nick Dyer wrote: > > On Mon, Mar 12, 2018 at 12:08:54PM -0700, Dmitry Torokhov wrote: > > > The way we are supposed to put controller to sleep and wake it up does not > > > depend on the platform, but rather on controller itself. Controllers using > > > T9 require manipulating T9 control register, while others, using newer > > > T100, should be put to sleep by adjusting T7 power config. > > > > I'm afraid this is actually a misconception. If you look at object table > > for the older T9 device, you'll find it has the T7 object and it in fact > > works exactly the same way as the T100-based device. > > > > The MXT_SUSPEND_T9_CTRL is in there because on your older Pixel devices > > the config saved into NVRAM on the touch controller has a zero byte in > > the T9 CTRL setting, meaning the touch controller will never wake up > > unless the driver knows to write 0x83 into it. > > Ah, OK, I see. I would really like to drop this pdata->suspend_mode > stuff and I do not want to create "pixel-screwed-up" property either... > I guess for the time being I'll put a DMI quirk for Link to restore T9 > control method, and then look into cleaning it all up. We have quite a > bit different code in chromeos kernel trees and I'd like to reconcile > it. Yes, it would be great to get rid of it. The driver does have the ability to download configuration via the firmware loader interface. So you would be able to grab a copy of the config by saving it with mxt-app, tweak it to ensure that the T9 CTRL byte is set correctly, then ship it somehow (presumably it could be added to linux-firmware). This would override what's currently stored in NVRAM on all those units and mean we could remove the T9_CTRL stuff. I'm happy to talk you through sorting that out in more detail if you want to give it a go. I don't have any Pixel 1 hardware available at the moment, unfortunately. N