Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp23118309rwd; Fri, 30 Jun 2023 18:41:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlH6oVXCrj70cN7nJOUZ2cCUes3k0AeSmreI73ErnoYMKzKmpFTaIJ2i5Q4YrDDninP5Fyup X-Received: by 2002:a81:668b:0:b0:577:6394:60f6 with SMTP id a133-20020a81668b000000b00577639460f6mr2349339ywc.21.1688175682364; Fri, 30 Jun 2023 18:41:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688175682; cv=none; d=google.com; s=arc-20160816; b=qa0pVhifmi4WVu0WOri2pjRXQm1it+Jmnx1EGEpCSY7L5pPqRadiJ9CfysX6QImAbx 1/+y0m70ZnPZTuxQJB5IyCD1aXTs2s5MBjDQ5oFhr+1mlwxT/WiPfTfFyOLQh1Fo0RVZ EZbRyZvWQ+O4zeQ9YFdTIYE7tZwYfc7Sd5O0bo++Hhnuo9CAdpwgB0vTp4x39hHhAIDQ otfmTi47HG62FIHUGcvT5iuNMh7EI+kt4qw+Fym/A/ieb1dfngmEnbvoqt0aJsCwVyd5 VUR2EJVsvTEilWDksXay7EsBxqe9qmFSArTrqTz2xmOND9beiHosbf5a+onk8cj1vgyz MtOw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=M6/oowj+D12L+KLLepd1k9wmj7JyqyuClF3Ahzdu/Ms=; fh=NjjqT99uEtlyV2u0XnI2mgdRZyEPdtaHRv+lFE241iQ=; b=HfFbbpF7BoSM61cemVOYyk1PZJscJT3MNWhYI7lM02ENDlTQ16Y8HQkIFueZFidgxk OcHOyEDMI7fF6yhz91X2Wp3iTS1L8cZnNaUYu69Rwl/BAHeHPdDcLL7PvF1Quuz1RnQj NBJxEIb66GybsAx4peiR2Sk+qoGvHkc5JSjMKWPpECd5XU1ITLB2UqH7JmShUQtiGRlB hWe3gt4lqzAwdtXSvl/0qlkJ7IJ7jxZrQweVWBcQs4419u2+Y0Wzg/aLIJmquoO2yyZd PpVhT5UUBfjGYIiOjlmPYRHAPx4DhAo3HNGAuoAjevxFGpuPylFmqIJrkHWJZKiUu05p F7fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a+6ushJQ; 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 t4-20020a63f344000000b0053f212830aesi13860005pgj.311.2023.06.30.18.41.07; Fri, 30 Jun 2023 18:41:22 -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=a+6ushJQ; 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 S229548AbjGABis (ORCPT + 99 others); Fri, 30 Jun 2023 21:38:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjGABiq (ORCPT ); Fri, 30 Jun 2023 21:38:46 -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 E6CD63C3F; Fri, 30 Jun 2023 18:38:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7A1986181E; Sat, 1 Jul 2023 01:38:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7FA41C433C8; Sat, 1 Jul 2023 01:38:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688175524; bh=8tuPFYQini8cA31rl8RqFlqMpM/YpLu7utwQ2IOkLdQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=a+6ushJQuZQ+/DiTNSJEeNv73mjLgpLtjmSo0uQQaZBH+XlnVU945qa+FTGFQ/ysL 7BfmUj4eNjs9xlt6E644/IOTFqWyNpehx53LT2HATZYDKI4gX4zEUl+EPNjanfPbv3 B6FugksYaED3wEe4c4dug0P3ofkY9sGfqKZrdUYGwL/EgAUg7DMvmSqyosc9wfuoJv usdZqjyiaHpd3Nzh/N76ALqHJkhyQs0THugr+sTY4OS0cEVT1ZOekgnZtTVRr4w3bf 5cEAks4NKBFdD4hOFmEp1jRwCNiQtZFkz/j4xOgBsb3dJhG0eqvZfJnbui4yING4/6 m6O3X4Oives8w== Date: Fri, 30 Jun 2023 18:38:43 -0700 From: Eduardo Valentin To: Daniel Lezcano Cc: "Rafael J. Wysocki" , Eduardo Valentin , eduval@amazon.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Amit Kucheria , Zhang Rui Subject: [PATCH 1/1] thermal: sysfs: avoid actual readings from sysfs Message-ID: References: <7616fd9d-aa0d-2ecd-8751-894b1c9073c0@linaro.org> <75eba2da-593f-f3bd-4eac-5155fcf5aee8@linaro.org> <2d59de0d-5011-780a-cb6c-94e6e2b74156@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2d59de0d-5011-780a-cb6c-94e6e2b74156@linaro.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 Hey Daniel, On Fri, Jun 30, 2023 at 12:11:25PM +0200, Daniel Lezcano wrote: > > > > Hi Rafael, > > On 30/06/2023 10:16, Rafael J. Wysocki wrote: > > On Wed, Jun 28, 2023 at 11:10 PM Eduardo Valentin wrote: > > [ ... ] > > > So what about adding a new zone attribute that can be used to specify > > the preferred caching time for the temperature? > > > > That is, if the time interval between two consecutive updates of the > > cached temperature value is less than the value of the new attribute, > > the cached temperature value will be returned by "temp". Otherwise, > > it will cause the sensor to be read and the value obtained from it > > will be returned to user space and cached. > > > > If the value of the new attribute is 0, everything will work as it > > does now (which will also need to be the default behavior). > > I'm still not convinced about the feature. > > Eduardo provided some numbers but they seem based on the characteristics > of the I2C, not to a real use case. Eduardo? Why I2C is not a real use case? -- All the best, Eduardo Valentin