Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp185977rwl; Thu, 30 Mar 2023 14:16:17 -0700 (PDT) X-Google-Smtp-Source: AKy350Y+dj100Ns/GykyVsEXzbfChAnah58bI3DJa0yM6Yfg4H2MLwyKjWZUXWBxA4v3UfzA+lD/ X-Received: by 2002:a17:90a:4386:b0:23b:35cd:5b9a with SMTP id r6-20020a17090a438600b0023b35cd5b9amr3546818pjg.4.1680210977299; Thu, 30 Mar 2023 14:16:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680210977; cv=none; d=google.com; s=arc-20160816; b=wQfobgWvEPRLXy07jkZze/cHq0oYHTLXQvO6U+bTH0A74BiVVf591JaLvpEsxbPhD7 AWWLP+Z6FHRYv+wUnVNaV1Y1CY2KKGSc/UKt5obXI73E/+z+WXiVHn0DcBDlx5lzZTpL NfcnmNCgkkX8Y0ee5NC2dLtk6Cfu8eiCYbm0rHfWhF1frYB6jpR1yEU8BOHPtYXLNhQ+ +nDH+xKfldZCNKjTJXKF/dtZvHdy2yGxlAqk3iZnEY9rfOVl3orRGuvtHjNZMtIq2kRb LNBIKXsG+QJZbqE3utACZDpLLmUDI6fYwJKa2cXSCG8zikzao1s88DfcKyp4rFeYBb7G sR5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=svitRmAwfjSzCiTV3iUGu1W95ui5xUmfJsnHH3NKzfI=; b=TVGeSMB32V2WbDwOWr9hnNvBOtGCqSPeLwBTojFHR8XrqvijwlMNJ1OlH/4NW8Ntu7 Zxz7kRknVKpLyHgjUdvtqSDSkN2li5aGMsxdREiWNK4G6cTHCaf3ISbcYyRO2FSl2EUN ewo2zVT3O3lfddyaFf6ztbaY/8u0paA7XcnB71aoA6CoaSH4lyKboKOe7OEtuTIm8oMn 1oCdxk2AxnxCtXoEMtnGTGE/LK1hjfabpp1o7+9uQlmfaYXGmafAztEzIVLty5ZqxF2U GTotdomfEQKYtCz7xlAPOz0fTmkSqt9YKzTA/4DefPle/KU644j6MAlucm1zKjNc6Bvp deEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Rss+c7+J; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t14-20020a17090a6a0e00b00240ac49e589si356830pjj.3.2023.03.30.14.16.06; Thu, 30 Mar 2023 14:16:17 -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=@linaro.org header.s=google header.b=Rss+c7+J; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229703AbjC3VPC (ORCPT + 99 others); Thu, 30 Mar 2023 17:15:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230054AbjC3VOu (ORCPT ); Thu, 30 Mar 2023 17:14:50 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52ACC19A6 for ; Thu, 30 Mar 2023 14:14:43 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id q19so17353068wrc.5 for ; Thu, 30 Mar 2023 14:14:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680210882; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=svitRmAwfjSzCiTV3iUGu1W95ui5xUmfJsnHH3NKzfI=; b=Rss+c7+JE5WyxT+VVG/iOwxZVc8YNHKmivBSMRMVaBeJ9bdsZX88XJniTyN8h23gsX ypDL2EQadCUGFEJqsAPaRGz2BiGTQxSx/dn0UI3QB0tJJbNZJLzumZPkKbipUOWVlQIc B5P/iN4aTa397B02f5L8k4L2E7Ta8NeckYfzZ1dmqZls10f5FO6swRQcVPBQ+1Vw33nP S6/nUbYIuYag2O/V1N0g9hf5b6B+U47nDXZfAu4GMBf3r5DGoBwgG0D4N8jmnV8dVdGQ M6A2BO94NIUMb78mrE7oI0zc1V3mirIgu5L1oFIEq5VtDwPp+7U2LJOeWth8n95TWXQx zuRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680210882; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=svitRmAwfjSzCiTV3iUGu1W95ui5xUmfJsnHH3NKzfI=; b=wTlW7V0tkthqKWc6rb7BL6bqQYDX9RsOy7v3crpYn7nEb9Mb0MFyLRod9gdJzl/r7v f0FmbVCcL0R5WMNPrJPVbAnL+sRBBKxTyTpQrK+CeOpJbqfzOBjE/XkTxtVs/k4hI+H6 KRNECGPpq8xyOx1y6OdyUKYIrKx1u84c4WfsUhtmDkT8OvR+iwC2SUyDQ01xaiPwAR5N WSUGSoDEFbpikYY9yh+oRIXB8M0ClauA8hxvjy0uDQzI58Eux05+KPaIfB1Iycor2ANa 12+GGGBMIKK7FNPOtpGv9KWzPyPrGagqbgy0P6NKNmOhug0AoBu1gZUHTvPpVnsTshUp kQpg== X-Gm-Message-State: AAQBX9cHhFCMs1u7HoHP1BsYL2mvwX9GAYNzVTUaub2IUPMl+4uB699K p6FUjzMs4ikzQqog8/+yHAxi8Q== X-Received: by 2002:a05:6000:8a:b0:2d1:e517:4992 with SMTP id m10-20020a056000008a00b002d1e5174992mr17772196wrx.69.1680210881643; Thu, 30 Mar 2023 14:14:41 -0700 (PDT) Received: from ?IPV6:2a05:6e02:1041:c10:17ff:909e:1b73:8366? ([2a05:6e02:1041:c10:17ff:909e:1b73:8366]) by smtp.googlemail.com with ESMTPSA id t17-20020adff611000000b002c5a790e959sm376235wrp.19.2023.03.30.14.14.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 Mar 2023 14:14:41 -0700 (PDT) Message-ID: Date: Thu, 30 Mar 2023 23:14:40 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v2] thermal: tegra-bpmp: Handle offline zones Content-Language: en-US To: Mikko Perttunen , "Rafael J. Wysocki" , Amit Kucheria , Zhang Rui , Thierry Reding , Jonathan Hunter Cc: Mikko Perttunen , linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230330094904.2589428-1-cyndis@kapsi.fi> From: Daniel Lezcano In-Reply-To: <20230330094904.2589428-1-cyndis@kapsi.fi> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 30/03/2023 11:49, Mikko Perttunen wrote: > From: Mikko Perttunen > > Thermal zones located in power domains may not be accessible when > the domain is powergated. In this situation, reading the temperature > will return -BPMP_EFAULT. When evaluating trips, BPMP will internally > use -256C as the temperature for offline zones. > > For smooth operation, for offline zones, return -EAGAIN when reading > the temperature and allow registration of zones even if they are > offline during probe. > > Signed-off-by: Mikko Perttunen Applied, thanks -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog