Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp700463rdg; Wed, 11 Oct 2023 03:09:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF80i7Yf2Igrv2P4jbp5Ca6VnChVyYTS4kQM90VncHcPdJ5xPOC7zhQZzlMja4tfCkugp3T X-Received: by 2002:a05:6a21:181:b0:153:4ea6:d12e with SMTP id le1-20020a056a21018100b001534ea6d12emr28173915pzb.17.1697018946874; Wed, 11 Oct 2023 03:09:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697018946; cv=none; d=google.com; s=arc-20160816; b=fraoOy/SAV4OYQG8eUahsBYHBdIzeKkJo7Jvr5GgLe6u8z5tQzgVcwwaSejjSy8g+A dll4pkQ+bnNCQwRDQn/oYc/Be+Ahv60BRgcxCVxhm0jknK2reHQDzXRGXpsrXJVQQJLs EIATYOmIvI9aggBzorsEmPmdumYb2HcUgZz5e7aWpSIvK14Xa+O9o3oielKesZPjEIe0 Jwa1bwLThZ2zB/P6OJcMvJrW9klYNNgXV5AGAjJxJ4OhYchssYagTTnGrxuicFI3drVc 3rtPKKgHH6isbreGwfptgjP7qjVJ3yt5kBwEfEonBW2EZ2EGO7F3LAd/yPxs8QmZhTto um+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=bsWMOLuJqD/xZqbiib/RkXDyqsgNeF8lEAQxSRoeP38=; fh=MUdQ0ZqRyvUfEUDwszysUQCeF7sm2ESmnSKQJuwfC2Q=; b=O28DlJrIS+KRylylhCLpGuFgLOYU7IE8IK1glmXMQdNoT3q5D0MRut02eqszER+sDi 7Q+/4/Y5Gp+I6/lWnrETbrABGQ1CWDhWdBjAydJ4+ywoFvmmgkLSvBfUDISEmiZleRHB 0Zfgbol/6Cao0950TIHMZ+GfiP6DZibvGLHd11Ls7gzuzU+JnAKZgpPERNhyvbzQPgkR cqXXewfXvDLnp+Oo/kaf9TxCPThzTA4y8NuvX/ZLu/89bhYtkcS2hftj0NSnCplfZlaR DA5TlGqZvqBmqaPGD+3DS3UvOwSGsT5OuPPAPQr83YXYa6dpmoxJVUyi7urmi2xD4pfg GlGA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id x14-20020a634a0e000000b00588fa0def2asi3680220pga.778.2023.10.11.03.09.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 03:09:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id BBFF4811546A; Wed, 11 Oct 2023 03:09:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234698AbjJKKIu (ORCPT + 99 others); Wed, 11 Oct 2023 06:08:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234001AbjJKKIg (ORCPT ); Wed, 11 Oct 2023 06:08:36 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F009F1732; Wed, 11 Oct 2023 03:07:28 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 606E680E1; Wed, 11 Oct 2023 10:07:28 +0000 (UTC) Date: Wed, 11 Oct 2023 13:07:26 +0300 From: Tony Lindgren To: Andreas Kemnade Cc: dmitry.torokhov@gmail.com, Jonathan.Cameron@huawei.com, robh@kernel.org, frank.li@vivo.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: Re: [RFC PATCH] Input: omap4-keypad: react on keypresses if device is runtime-suspended Message-ID: <20231011100726.GD34982@atomide.com> References: <20230929200046.2300333-1-andreas@kemnade.info> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230929200046.2300333-1-andreas@kemnade.info> X-Spam-Status: No, score=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 11 Oct 2023 03:09:04 -0700 (PDT) X-Spam-Level: ** Hi, * Andreas Kemnade [230929 23:01]: > According to SWPU235AB, table 26-6, fclk is required to generate events > at least on OMAP4460, so keep fclk enabled all the time the device > is opened. Sorry for the delay, the patch looks good to me: Reviewed-by: Tony Lindgren > Open questions: > - Should we rather (or also use) padconf irqs? The keypad is in the wakeup domain and has SYSC_OMAP2_ENAWAKEUP set in the dts, so padconf irqs should not be needed as long as the device is clocked. As the source clock is sys_32k_ck, not sure if gating it would save any power, so padconf interrupts are probably not needed. > - It seems not to be required everywhere. Does it harm somewhere? Sounds like on 4430 the gate bit does not do anything while on 4460 it does. The source clock seems to be sys_32k_ck so it's enabled anyways and should not affect power management. Regards, Tony