Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp4388278rwb; Sun, 7 Aug 2022 23:15:35 -0700 (PDT) X-Google-Smtp-Source: AA6agR59xGJDxKgaGbpOhCUVPPNFiHwoStSufdtNOdFW+NnQHsgo0+ss2knbSQEsc0esobghVEOY X-Received: by 2002:a17:906:cc5e:b0:730:cf6d:5451 with SMTP id mm30-20020a170906cc5e00b00730cf6d5451mr13045307ejb.725.1659939335124; Sun, 07 Aug 2022 23:15:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659939335; cv=none; d=google.com; s=arc-20160816; b=xu4V4hWttJZ2FOeN9Enw1CFXrqaqo3KDd3frr8euYvqYTKtMwq0v7a/S6nm3E8E9Yf hAusfTrfZIS7RYsc09qHACB/TnNo8b0CBjMSK+TJZ/kuRdCT/WQsGB9bcXGo8eIiD2bL qOKJcHY+Vs3UMnD/R5HEQ9VOTUr+opWyqtUa7Ou3ahZhfhEaaZ/WrURuc6jbdziLUHdX jly1WZZuHxPF7YF65AY9dRjeYKWNoIYoEbu7U7INmZxBQFXBoYdsSd3tdmF4UD66H8QH 7LQGnHuNnCAq2azU8CVTZrnGfkyeVouieP/hcYB6YqrsSZB+RRsz7pfNwtzT9+feVeoq AQ2w== 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:dkim-signature; bh=0znvGMlkeQ9UaRgDkK4MnRfrwjKN2OsG2Pjkq3diLJo=; b=Tu8vdz2T8vc5MBl6bBfHR2gc9hLXTPqcGKOBx9VwwEQp3GXrUaTbuTzX3tq+eaVT1o pyY13BtIAC1c+T+mW+iGhz0w+QEMQ1C38qaHs/tWUtS7xXDP5OdCc07QflVu3tKSRTNw xyU6t6NL/KyHMmPeZ9YzoBlnRQQ00Dpxn6qS9Em9MIM+nw4C+0u0USuIKv3VWvi0dYlr XPrSAEVUJecdwKAFMa8Dtk3pM6l7fONeUk2d9N/KzWhMO75ZMzPk4wz1l/yEy9llKRqT 3Bvz0a9b66SgeKJ9SkZvZ0rU9gdTSuImRAm2o8jbGiVvIapclbKlgCWPWcnyojwHoi9o trWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TgQ3B5sv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i11-20020a1709064fcb00b0072b88d59ce5si11708383ejw.461.2022.08.07.23.15.10; Sun, 07 Aug 2022 23:15:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TgQ3B5sv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233599AbiHHGHO (ORCPT + 99 others); Mon, 8 Aug 2022 02:07:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229524AbiHHGHN (ORCPT ); Mon, 8 Aug 2022 02:07:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AE0610B8 for ; Sun, 7 Aug 2022 23:07:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 32B15611CC for ; Mon, 8 Aug 2022 06:07:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01E5FC433C1; Mon, 8 Aug 2022 06:07:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659938831; bh=BeJ/5CXgtTEWpJK23C0F6E+yUTy2LMEwm0F/7sKgZb8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TgQ3B5svGytonlkpnAQtF6NzuOZwdq006a15FQA6MiMkXmaGppGoUIptlzwmh4jS3 KLFmZo7418CeUNup627yaJYuxcVHpMXcYxJF6YL90DV0TRlKfEoxwLSOa1Hg7S4zew +2adHrBxqK3iGff1S/5iIyhPnr62O6Rk9roodsHKUI/nNtaoelTj48rpNoUI41vYVa rSbe5RyYxiUN/kYc0R7nQc6BKfmVMmKxfzPpwkdgK09PUcfYmzsYpuMGUzYSy/wsHX SXkoNWoWzs3ktOTxUSpVN9cYiYN+zGUzvuon26hLEruKzg1iOhNVXShVrrYiV64VRo jU8ZTV9EK7EJg== Date: Mon, 8 Aug 2022 06:07:07 +0000 From: Tzung-Bi Shih To: Evan Green Cc: Enric Balletbo i Serra , Rajat Jain , Benson Leung , Guenter Roeck , Prashant Malani , Stephen Boyd , Tinghan Shen , chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] platform/chrome: cros_ec: Expose suspend_timeout in debugfs Message-ID: References: <20220805151551.1.Idd188ff3f9caddebc17ac357a13005f93333c21f@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220805151551.1.Idd188ff3f9caddebc17ac357a13005f93333c21f@changeid> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 05, 2022 at 03:17:17PM -0700, Evan Green wrote: > diff --git a/Documentation/ABI/testing/debugfs-cros-ec b/Documentation/ABI/testing/debugfs-cros-ec > index 1fe0add99a2a99..8e7e76e6481550 100644 > --- a/Documentation/ABI/testing/debugfs-cros-ec > +++ b/Documentation/ABI/testing/debugfs-cros-ec > @@ -54,3 +54,25 @@ Description: > this feature. > > Output will be in the format: "0x%08x\n". > + > +What: /sys/kernel/debug//suspend_timeout > +Date: August 2022 > +KernelVersion: 6.0 The merge window is opened. It's too late for the patch if the following outcome version is 6.0. > +Description: > + Some ECs have a feature where they will track transitions to the > + a hardware-controlled sleep line, such as Intel's SLP_S0 line, > + in order to detect cases where a system failed to go into deep > + sleep states. The suspend_timeout file controls the amount of > + time in milliseconds the EC will wait before declaring a sleep > + timeout event and attempting to wake the system. > + > + Supply 0 to use the default value coded into EC firmware. Supply > + 65535 to disable the EC sleep failure detection mechanism. Better to mention EC_HOST_SLEEP_TIMEOUT_INFINITE or [1] in the description. Or, it's not obvious from the patch that 65535 disables the mechanism. [1]: https://chromium.googlesource.com/chromiumos/platform/ec/+/refs/heads/main/power/host_sleep.c