Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3307450pxk; Mon, 5 Oct 2020 06:38:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3csHspLIoXMNlsWD/AF4ZriQdV5emJz6GVKaEMducp3XQqGN/8Y6+ilRPqnV0ApAbIZzH X-Received: by 2002:a05:6402:699:: with SMTP id f25mr16829578edy.372.1601905118419; Mon, 05 Oct 2020 06:38:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601905118; cv=none; d=google.com; s=arc-20160816; b=d1c0qZAtTNayzlGt8Yyjd3tgLe1AKstySn5y2L83LT40K3fM9a6D4cBISXAf4zwi7S vIJ5AxOI6zSdhI+X4SMsjBggob0KpGcRqEUlju79J2l/7bSdqQ3P48+01MZFNIWM7jHm EqOuMeIpKNVK6ToKytElkOtoAFxDqZ82wTd+l32gqJvTag2RK2pFi1+yyUQcNYBnaI79 tUJrHcR+Kg6wUXMO9iT4lg240N+/0EeGEAF4s34iXWlV7CwjGqJl1oTAwmrOoc7Nvw0s ksQFZsHWWU/XiS1t+0QFPzyC0+/0tNeMBMXF7siwZ47Q/hNzSbo0/diRWoTOISDYRDKz o91g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=bLxudeooy16lmQW2lLUdbVDdR4PEptUMVCaBLa3xRxI=; b=d3N5PACeLS1AdYgj7IVZgDWMY9t0jvi8+q3pmyg7KQcqI6IyzLEgCKc2baOEbBNqQT zscB38FH3ck2P3HFHRLgOmo0B0lFKpCCbNAVlthWeHvzfhtSPaZwEw7RtlhQI2co+7nA t6CvPtOJG0evzTWJMphgY5CP22auyhzzZa3aqnszVByka6+SpDP8NL4VDZnqsHnN3m7c 51rWSvVuIDT0XIzeAN4TIDTzmy8aUwCNqtk+2NASmj6S9iwW9qb6QDY7OaZQB3x99eyx cRWZyGphHQ8how7Q95uHYpxiZhbVpkgrYnRYWRygRdnLZDAykWLRik7pMLz5stbl6MG1 f1LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="y/aOCBZP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b14si7288116ejj.36.2020.10.05.06.38.15; Mon, 05 Oct 2020 06:38:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="y/aOCBZP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726164AbgJENgw (ORCPT + 99 others); Mon, 5 Oct 2020 09:36:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:43134 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725914AbgJENgw (ORCPT ); Mon, 5 Oct 2020 09:36:52 -0400 Received: from mail-oi1-f182.google.com (mail-oi1-f182.google.com [209.85.167.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5ADA720774; Mon, 5 Oct 2020 13:36:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601905011; bh=ZIFB3rgf26rt5j5jyMIodGOuMafdvBhjlRX/3PIzwfs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=y/aOCBZPeKbzI6w2BUZ53/alYwBumqxwqs9wxTEyFpDNSe7+Iqeu3PBeqs13z2h/U LLziP3TdpkgaDBOgepVjvTyhxQqmYA108Oqo9avokmWyd8d24JD7hrLjIUJLhyxhXU 9SKToKrwm/l3AAw/bUfH4XNk3HooI8RTrykqWRTk= Received: by mail-oi1-f182.google.com with SMTP id t77so5217265oie.4; Mon, 05 Oct 2020 06:36:51 -0700 (PDT) X-Gm-Message-State: AOAM53068eSIuuFbikfCmeP/6EPee1OPcWK/6YWLSLw8Bd3AYveW4blf xtdE3+xkLwdAEQgLRdO85cn05uddb0NwxLiWpQ== X-Received: by 2002:a05:6808:10e:: with SMTP id b14mr9024261oie.152.1601905010756; Mon, 05 Oct 2020 06:36:50 -0700 (PDT) MIME-Version: 1.0 References: <20200922190807.6830-1-qiangqing.zhang@nxp.com> <20200922190807.6830-2-qiangqing.zhang@nxp.com> <20200929155201.GA665464@bogus> <20201003084656.GA29917@gofer.mess.org> In-Reply-To: <20201003084656.GA29917@gofer.mess.org> From: Rob Herring Date: Mon, 5 Oct 2020 08:36:39 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V3 1/2] bindings: media: gpio-ir-receiver: add linux,autosuspend-period property To: Sean Young Cc: Joakim Zhang , Mauro Carvalho Chehab , Linux Media Mailing List , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , NXP Linux Team Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 3, 2020 at 3:46 AM Sean Young wrote: > > On Tue, Sep 29, 2020 at 10:52:01AM -0500, Rob Herring wrote: > > On Wed, Sep 23, 2020 at 03:08:06AM +0800, Joakim Zhang wrote: > > > Add linux,autosuspend-period property for gpio ir receiver. Some cpuidle > > > systems wake from idle may take a bit long time, for such case, need > > > disable cpuidle temporarily. > > > > > > Signed-off-by: Joakim Zhang > > > --- > > > ChangeLogs: > > > V1->V2: > > > * New add. > > > V2->V3: > > > * linux,autosuspend-period = 125; -> linux,autosuspend-period = <125>; > > > --- > > > Documentation/devicetree/bindings/media/gpio-ir-receiver.txt | 3 +++ > > > 1 file changed, 3 insertions(+) > > > > > > diff --git a/Documentation/devicetree/bindings/media/gpio-ir-receiver.txt b/Documentation/devicetree/bindings/media/gpio-ir-receiver.txt > > > index 58261fb7b408..e1447c9b0e26 100644 > > > --- a/Documentation/devicetree/bindings/media/gpio-ir-receiver.txt > > > +++ b/Documentation/devicetree/bindings/media/gpio-ir-receiver.txt > > > @@ -7,6 +7,8 @@ Required properties: > > > Optional properties: > > > - linux,rc-map-name: see rc.txt file in the same > > > directory. > > > + - linux,autosuspend-period: autosuspend delay time, > > > + the unit is milisecond. > > > > What makes this linux specific? > > Good point. "linux,autosuspend-period" does not say what is being > suspended either. How about "cpuidle-suspend-period" instead? 'cpuidle' is a Linuxism. And you also need a unit suffix. I'm not clear on how autosuspend which is generally how long a peripheral is idle before runtime suspending it relates to this which seems to be concerned with cpu wakeup latency. I'm assuming you need to wake up within a certain time period to capture GPIO edges. Don't you know what this time would be based on IR data rates and can provide that constraint to cpuidle? Also, we can set autosuspend times from sysfs. Why do you need to do this from DT? Rob