From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6212FC4332B for ; Fri, 20 Mar 2020 19:00:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 46EA820781 for ; Fri, 20 Mar 2020 19:00:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726829AbgCTTAr (ORCPT ); Fri, 20 Mar 2020 15:00:47 -0400 Received: from muru.com ([72.249.23.125]:32810 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726738AbgCTTAr (ORCPT ); Fri, 20 Mar 2020 15:00:47 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 2FBDC8030; Fri, 20 Mar 2020 19:01:30 +0000 (UTC) Date: Fri, 20 Mar 2020 12:00:40 -0700 From: Tony Lindgren To: Nick Dyer , Dmitry Torokhov Cc: Henrik Rydberg , Arthur Demchenkov , Ivaylo Dimitrov , Merlijn Wajer , Pavel Machek , Sebastian Reichel , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: Re: [PATCH 3/3] Input: atmel_mxt_ts - use runtime PM autosuspend for idle config Message-ID: <20200320190040.GP37466@atomide.com> References: <20200318230938.31573-1-tony@atomide.com> <20200318230938.31573-3-tony@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200318230938.31573-3-tony@atomide.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org * Tony Lindgren [200318 23:10]: > Let's enable runtime PM autosuspend with a default value of 600 ms and > switch to idle power config for runtime_suspend. The autosuspend timeout > can also be configured also via userspace with value of -1 disabling the > autosuspend. > > Let's only allow autosuspend if MXT_SUSPEND_T9_CTRL is not configured for > suspend_mode as MXT_SUSPEND_T9_CTRL mode powers off the controller. Hmm looks like with autosuspend enabled I need a short swipe instead of just clicking on the screen to produce a click. So we may want to default to autosuspend timeout of -1 and have user set it when suitable and no other fix is found. On droid4, I've confirmed that disabling autosuspend fixes the issue FYI: # echo on > /sys/bus/i2c/drivers/atmel_mxt_ts/1-004a/power/control Regards, Tony