Received: by 10.213.65.68 with SMTP id h4csp469538imn; Sat, 17 Mar 2018 10:43:52 -0700 (PDT) X-Google-Smtp-Source: AG47ELv6LKr8BOHN3t2esBTfMw/0NLY/G2soUNYC8WFyWuSEzPhX5/cTz3wgdccLZD+I3fuX8nWp X-Received: by 2002:a17:902:b786:: with SMTP id e6-v6mr6570305pls.58.1521308632470; Sat, 17 Mar 2018 10:43:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521308632; cv=none; d=google.com; s=arc-20160816; b=C7FUMunL1cJGJIRAS1YjZxhZMOUhgSE5PjUzokKhSDZ71xWLn/L6mCZEIfTJYYZ11n vni5uCUfBcT0ps9SSGpl2GD9PkDI+sH2cv/SWRlIKsQUG9WU0YcBFqJ53cgQYkcqBg/P Q7VDDi+L6TZqhcgCjUP27ptd4WeCBVAx4FG/TFAok6j5lllZW1nBJ3sFOvKUHoR3WwhL OcIudQ1ibV5i8OkF8yAP8B9bB5AJnJ7t1SRrBjMAV3aPiG6iPDf1pL9rg5h5hrudGHvM 0XY8vOeikVCAVBB1LVH2rUwO1ZJkSautl6wkLjYKwoM13yzfIOqT6acHClQzfTtRisw6 iFqA== 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:dkim-signature:arc-authentication-results; bh=iUcawF4XT/nbNIMrv/ufZrXPwRprgoftXV2SnSmAGpg=; b=zNSC7Ko80zxHRQs+cqpuGGjhXkDx/L/5osda+FKDETPBMlhhrKK+PR0MrOrBup7dZb UJcx03FXfOwNk0CtbgAbwV1fi2iZc+YGRa97GvAZGYXt3ggvzohgl2nIOOr5IiwwUDrZ OV6ZuIdks0GLPK7GlkGZdUYglyPpczdS0b0A3INfsuSsasJ6RR/iaSY21y81t/uLaD/3 lOhYqMGAcGgOhdDAmKbJGifnsINawKded9vr8QOF6TwXZQXBUYa4sF04dotDPXIQi+zL DZkj9Zg6lAHdWQtD2yfYimjnrQwGFtGSpPtOQ+49CiKdKm7uqYGeo0uLLstiQA0eg/zS VF7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WAAR97xL; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a6-v6si8062869pll.406.2018.03.17.10.43.37; Sat, 17 Mar 2018 10:43:52 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WAAR97xL; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753515AbeCQRmr (ORCPT + 99 others); Sat, 17 Mar 2018 13:42:47 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:40059 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752685AbeCQRmn (ORCPT ); Sat, 17 Mar 2018 13:42:43 -0400 Received: by mail-pl0-f68.google.com with SMTP id ay1-v6so7732446plb.7; Sat, 17 Mar 2018 10:42:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=iUcawF4XT/nbNIMrv/ufZrXPwRprgoftXV2SnSmAGpg=; b=WAAR97xLYmiwsgWKUCr58K/OOELI2Gt+XyPvMt/VQwofDB7y9dbP8f4nFfFOsWjPeK 42wIDBvAczdrByXH3TovmgVXoeYAMbt/xV2l+WxEhO/IVkn6RwGOV2Btnbwd9A4zEJpK x7ZhYXWtwHEH+lqQhWqbFgQv0HltqXl/YSi7AfqV33GExK4fqUg3fgNPnrGajPC02BDY Ryo58LHrnW3fdixDPsN9gbnDv+vWPjPdJkXCzXRo+xczp1YkQD6G37gNCbDjoCfNIVJs sd/huDZb0fkYben9rs+SOUY52Fp8ThB3T8o9S2mj3D2slumdsILmVfGgf72GWrbbfN/v 9N4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=iUcawF4XT/nbNIMrv/ufZrXPwRprgoftXV2SnSmAGpg=; b=HALVMPDGHp45YEZtY7rtvypyFNbPKIn3jU7D/dWci5uoKgnfCdJOqm2TeBo8Fxy7GI 6KmWiSQWUtzWJqrtPag2McUIP8p+DLxs6+QbUIoO47n44QFA9yDxCBJYwx1lzusElz/M nSdW9QMy7VbbmANrWJN0XLYsYqw4xNEGHCn3eAIyhjj1OBDY7hUao88EvwWYXIa8CNMg 4Uxg9vMXXTAn9H5S3UOzDR0d1DKGKSnwuKsPw4qIUDbx96Hc/v427sEw271PINJ6eb7F iABR5c6TQ4W/KhDe3flslKGbxCnTCcdUkGbRipLTc9uL34DEIZJjgtc/GNuXBw80G/Q2 ki2Q== X-Gm-Message-State: AElRT7FDddHViZis+cBUKfbPeqwU3r20qe8CzGOgvckCRt8LpUyzKYXH 3N5DqkER6j1Da+925Q5es6hRMgEB X-Received: by 2002:a17:902:56c:: with SMTP id 99-v6mr6244400plf.53.1521308562480; Sat, 17 Mar 2018 10:42:42 -0700 (PDT) Received: from dtor-ws ([2620:0:1000:1511:8de6:27a8:ed13:2ef5]) by smtp.gmail.com with ESMTPSA id p14sm17347637pgu.44.2018.03.17.10.42.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 17 Mar 2018 10:42:41 -0700 (PDT) Date: Sat, 17 Mar 2018 10:42:40 -0700 From: Dmitry Torokhov To: Nick Dyer 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: <20180317174240.GC183240@dtor-ws> 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> <20180316204002.GA24333@bm.shmanahar.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180316204002.GA24333@bm.shmanahar.org> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 16, 2018 at 08:40:02PM +0000, Nick Dyer wrote: > 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. We can't really rely on people fetching updated config. Do you think we could see if the device has only T9 and not T100 and if coming out of suspend the T9 CTRL byte is 0 we overwrite it with the 0x83? > > 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. Yes, I have several Chromebooks with Atmel so I can try on a few of them. Thanks. -- Dmitry