Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1643239pxu; Thu, 8 Oct 2020 17:43:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9wQALYU1TGQjQ64QRHinx/QV2Afd0uxGdza5qF/UPhDALjbpkdr5OOCCuHz5E6s61FDmG X-Received: by 2002:aa7:d843:: with SMTP id f3mr11748315eds.115.1602204189622; Thu, 08 Oct 2020 17:43:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602204189; cv=none; d=google.com; s=arc-20160816; b=Cs2qQ3GThzOYUCJINrfkI2nyC5WYDhBx1VTa1ZEpTGcc/Iqr03xbuMOhLhunwEdz4j 7tw+B4qgZ5oMDnjQOttKPG7EyWoWurdQTNq9tL+GQ2sRzQIP1U0D0UvjjenwJ7OI39Kk tDlJvY6V5+ny1v2svbrV53pvFZalpoexBNykhyDK2NwN6109s1ekyBgDrquqGGazBrEp uGPUlRxPjEQOp+90pZF9OJY6pQXEYbiC4h0jcqL/7aeuv+9ZicGG7XWYp6hEQv36StNk KG++C9B508SZJYB5/wRHANv4786DzvCIEFh5ZPiIiIvmVwLHRGaKU8ZaceIJTGQ1yyMj FZ8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=3EtKmKMy3vG8i3h8NClcxP5zyMtCd9LJjxAVLf9GMYQ=; b=b/SFMN2n4KgUw54whBgh0K8o5f2idGtggNxTtqoHVY+5wWmLwu66EwHdFy8B9c6rkD mN+7ARNAALaaI+O9fSFn+w0S9x4ZhIraxc4DkzlrttZ+p0QvJfW+PSwRXuEk4TFdVEMt rCKNuZxYXOkZ9kQM7hVP4OnkCkKfV9A5TaIsJ3xknHdAHUL+Eo1cwf5te+6Yd+PSVYp0 7yeaOxJHISA5fD3aT5l9AXj/ajAKRtmX+goFeJdM9W/rQJ1NEGV10OiM/BMlNonK8mcu sXnMr0yr8J3L0rplYRB04S+5EuC0dGPZNyZ16DC9rjisM2uZIHbaTFTWVM5Ld0rmryur HPXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bJ876ZGy; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j1si49101ejx.446.2020.10.08.17.42.46; Thu, 08 Oct 2020 17:43:09 -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=@linaro.org header.s=google header.b=bJ876ZGy; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730950AbgJHXXZ (ORCPT + 99 others); Thu, 8 Oct 2020 19:23:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730942AbgJHXXZ (ORCPT ); Thu, 8 Oct 2020 19:23:25 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E54B5C0613D5 for ; Thu, 8 Oct 2020 16:23:24 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id n18so8354831wrs.5 for ; Thu, 08 Oct 2020 16:23:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=3EtKmKMy3vG8i3h8NClcxP5zyMtCd9LJjxAVLf9GMYQ=; b=bJ876ZGyQ9SPlHdrPZbdemybrbsKrafGpMMela3/WxH/fFzPWEtY16uq61ogRFXtyd 0jXWiFV94Puw0OvdeqqlJCnQpv+eDeQneNXpZfq3jrnRBVBCBAqaS2oEl7cPB68LNOEz izWppDmNLm05MJDjO2HvyqIKCLEHz9crTHwXHraK6YVoc65g18FYY6tKaBwqU/nNCzJm zZE2gaevKL9ZYbEEp+z7zADUsG1nkBcy/skduLDiHmjKneMdH2F6JNTAAvwBTGGAwYYc D7GddT1ShWiakiZmuziySZlC11TvfpRBVSwyFMk1LFAwVFOh/4h+hmHIrE14ne7mDIB9 61vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=3EtKmKMy3vG8i3h8NClcxP5zyMtCd9LJjxAVLf9GMYQ=; b=fKP3A5EyjSOkk40MPScw4H6Husc+Te03TegZZYeI3miXpkN34rkr6VhImsfBk6MAJd 2xlVL8oZeYhxv78vg9lOkHk2FGDztniX7z34eV41lw6ljdc8pkOas+io1zUP34tvDLa9 VPUoBhtwO0ayg5/H7+dGx770i9gvw9oZT0TsEEeDchSL7x7/NK7NEQ9IBRQbPFAavEoG YYHIzdBeuvNFxrqUS8RImF4/9LY0SiQSz4RBSK6PyUADm1HWkGwX+WPXaQP83bOQxMFl zT5443Uw0YjMQTyWTyjzAd6XYeCMp3QO6QKZlfeaOnqlcteZC19iK4oaTRWYbWmPMEfg D7jQ== X-Gm-Message-State: AOAM533ZVEyLnjH3Qvgh9L6tG51JrFcL9A7BleEmPoxNZfWDpX5JorMl UXm89EoK78BZWhXxEVnkm7iiDk2LU7zv/w== X-Received: by 2002:adf:bc14:: with SMTP id s20mr12488513wrg.220.1602199403185; Thu, 08 Oct 2020 16:23:23 -0700 (PDT) Received: from ?IPv6:2a01:e34:ed2f:f020:bcbd:c839:6352:ebcd? ([2a01:e34:ed2f:f020:bcbd:c839:6352:ebcd]) by smtp.googlemail.com with ESMTPSA id v128sm8820729wme.2.2020.10.08.16.23.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Oct 2020 16:23:22 -0700 (PDT) Subject: Re: [PATCH 1/2] thermal: ti-soc-thermal: Enable addition power management To: Adam Ford , linux-pm@vger.kernel.org, linux-omap@vger.kernel.org Cc: aford@beaconembedded.com, kernel test robot , Andreas Kemnade , Tony Lindgren , Russell King , Eduardo Valentin , Keerthy , Zhang Rui , Amit Kucheria , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20200911123157.759379-1-aford173@gmail.com> From: Daniel Lezcano Message-ID: <6acd7e51-0c77-fa30-9e8c-d2cf727e512c@linaro.org> Date: Fri, 9 Oct 2020 01:23:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200911123157.759379-1-aford173@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/09/2020 14:31, Adam Ford wrote: > The bandgap sensor can be idled when the processor is too, but it > isn't currently being done, so the power consumption of OMAP3 > boards can elevated if the bangap sensor is enabled. > > This patch attempts to use some additional power management > to idle the clock to the bandgap when not needed. > > Signed-off-by: Adam Ford > Reported-by: kernel test robot > Tested-by: Andreas Kemnade # GTA04 > --- [ ... ] > - /* First thing is to remove sensor interfaces */ > + cpu_pm_unregister_notifier(&bgp->nb); > + > + /* Remove sensor interfaces */ > for (i = 0; i < bgp->conf->sensor_count; i++) { > if (bgp->conf->sensors[i].unregister_cooling) > bgp->conf->sensors[i].unregister_cooling(bgp, i); > @@ -1150,9 +1167,43 @@ static int ti_bandgap_suspend(struct device *dev) > if (TI_BANDGAP_HAS(bgp, CLK_CTRL)) > clk_disable_unprepare(bgp->fclock); > > + bgp->is_suspended = true; Is this flag really needed? -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog