Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp9108435rwi; Tue, 25 Oct 2022 15:26:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4KJjxAQmDZgdz9/Z1bg/w53VH55hCxb5gLvfyAt+Sl4opujJFvcxEX0PkCq9AmSTKD+D09 X-Received: by 2002:a50:d70a:0:b0:460:5db5:368b with SMTP id t10-20020a50d70a000000b004605db5368bmr27846174edi.397.1666736761662; Tue, 25 Oct 2022 15:26:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666736761; cv=none; d=google.com; s=arc-20160816; b=xICEyhbfQaeGw3Qm0KKO+hQ8cEvdrslOjoVlevgaROti2f66uUSJ4aIepp6cIyWHGU SwCEDaL0LaqyqsWp2+OFNg7AKD+WWRJNwbkfoHWWELNUEBRFZe+2j86BX03IXnB0Q7KZ j1V4j+5TQ2c9pkvMyVbgo85VmJNTYcrSRXlKgeAcX3tHeClh+DlyA1dqIKs3iqwqC/PJ u4iPc+K6uE46WIEi1ItHmy7ND55uf5Na24iic6WnEtvXHkaX4jn3qvE2G3kMIMbLnLJa v7krO4dDHgr8EsVMSQe3G+uvBoxcUQMBuTVsUlcyfL9yXATncX+HDtMGq2MUY+FRee+n t/vg== 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=aqCyDzBlgI0lxrRS0dVDOBPWnZoyypnDJaDYBUnhBSA=; b=kkrvIvKufqyfGL75VUMnckMw+/yxnjduGhG61SFrRS5sNheLG8HJhYtSqU7QZ91dsT hj9s0zTqZwxxPPEEdKiWow/+QE1BFFC5k4W4L+q5FX7GXVGlf4WL1UMJfJOJBSdanfUN KaGg8A0NYgpG/fy0r/5QFvyPP8wX5K03tXXYAJG8yck8v2HzEJWIFwwbxW7HKbtVjG8L ndu3+T2IX8ycTldt2BmjaBIkvAJfD8KzvztiBJpEzCvw8cM0U88ifepS1eHACsgAKamx nY1y5LJ8hKzhExJr1W0CAIBxhTzJEV36YzgBs9Kc8Jgz8jQgqOjgOJ65AoHC8cVGu5BF KzYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZbCWAHea; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c1-20020a0564021f8100b0045fc914660csi3894906edc.200.2022.10.25.15.25.36; Tue, 25 Oct 2022 15:26:01 -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=@chromium.org header.s=google header.b=ZbCWAHea; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232404AbiJYVd6 (ORCPT + 99 others); Tue, 25 Oct 2022 17:33:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232240AbiJYVd4 (ORCPT ); Tue, 25 Oct 2022 17:33:56 -0400 Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6097F107A85 for ; Tue, 25 Oct 2022 14:33:55 -0700 (PDT) Received: by mail-io1-xd35.google.com with SMTP id d16so1036721iof.9 for ; Tue, 25 Oct 2022 14:33:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=aqCyDzBlgI0lxrRS0dVDOBPWnZoyypnDJaDYBUnhBSA=; b=ZbCWAHeaKy2n264Ub+ghiRtRmway0DRQ071l6WoJpSS1lHbUdOyzGEWfAkv7NZ3/Bp lfMxjFqVrLNEI+69N5m/udrQUiRi6+nWfEelZXmTmYKjEXJDakIn6pCkOxktYlUE0UHW NGy62ZV/grMkxizRvH/hcWpI+4d2bBPCfKpSs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aqCyDzBlgI0lxrRS0dVDOBPWnZoyypnDJaDYBUnhBSA=; b=yP4AV2xhg2fs7lMqgKOwD5/B/OuQYPezs9wPQX+pKZR5hAgM/m4vCbpBMsFZYRW7oz q8ZfnNvXY3/f8nPMx24qyy+PtVv0h6gRJWFFu9SvIkssZCVdyfchBWnH2jXxHwiMhGeu nODNFZOaeeo8B7qI2wdTp5nt/q9GtjfDXf2S3CILF4d6DO85QJl8R6rmUuIlaNetwgEw N3DwYNU95ERf4mR4LEu1OFHjyTWWutqd+B8dZ0nT0ZVSGu2F/Ci2Q751aIcfXrD36TIp 831EacYjRcYW+/vQzYmeKgpuUkra/5gUxy3MENtxoehz+2Qy/Mv5Cf7/sOBMJzkFRZoz jlXg== X-Gm-Message-State: ACrzQf2Ooy1f4vn/oQ7Ofo59RMfZkXZeipf5SolpDxH0cRyTa6d6BwbJ yFMHGJqIsDKvmfdUnhPwYgoYvw== X-Received: by 2002:a05:6602:2ac9:b0:6bc:17dd:3800 with SMTP id m9-20020a0566022ac900b006bc17dd3800mr22880722iov.72.1666733634729; Tue, 25 Oct 2022 14:33:54 -0700 (PDT) Received: from localhost (30.23.70.34.bc.googleusercontent.com. [34.70.23.30]) by smtp.gmail.com with UTF8SMTPSA id h12-20020a92c08c000000b003001f822301sm1356232ile.81.2022.10.25.14.33.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 Oct 2022 14:33:54 -0700 (PDT) Date: Tue, 25 Oct 2022 21:33:53 +0000 From: Matthias Kaehlcke To: Amit Kucheria , Thara Gopinath , Andy Gross , Bjorn Andersson , Konrad Dybcio , "Rafael J . Wysocki" , Daniel Lezcano , Zhang Rui Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss Subject: Re: [PATCH] thermal: qcom-spmi-temp-alarm: Log the actual max stage 2 threshold Message-ID: References: <20221025171453.1.I13c2a23f276fb63bfc225aeab0bf0db9560a90e0@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221025171453.1.I13c2a23f276fb63bfc225aeab0bf0db9560a90e0@changeid> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 I just saw that Luca already posted a similar patch: https://lore.kernel.org/lkml/CAHLCerN+-5qKsRmpuF55RdeUMZJZuiZJ-7O4LnM8+QuHJfs0mQ@mail.gmail.com/T/ Please disregard this one. On Tue, Oct 25, 2022 at 05:15:08PM +0000, Matthias Kaehlcke wrote: > If the critical trip point of the thermal zone is higher than > the max threshold of the PMIC log the actual max threshold of the > chip, not the gen1 max threshold of 140°C. > > Reported-by: Luca Weiss > Signed-off-by: Matthias Kaehlcke > --- > > drivers/thermal/qcom/qcom-spmi-temp-alarm.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/thermal/qcom/qcom-spmi-temp-alarm.c b/drivers/thermal/qcom/qcom-spmi-temp-alarm.c > index be785ab37e53..bdfe2129c357 100644 > --- a/drivers/thermal/qcom/qcom-spmi-temp-alarm.c > +++ b/drivers/thermal/qcom/qcom-spmi-temp-alarm.c > @@ -252,7 +252,8 @@ static int qpnp_tm_update_critical_trip_temp(struct qpnp_tm_chip *chip, > disable_s2_shutdown = true; > else > dev_warn(chip->dev, > - "No ADC is configured and critical temperature is above the maximum stage 2 threshold of 140 C! Configuring stage 2 shutdown at 140 C.\n"); > + "No ADC is configured and critical temperature is above the maximum stage 2 threshold of %d C! Configuring stage 2 shutdown at %d C.\n", > + stage2_threshold_max / 1000, stage2_threshold_max / 1000); > } > > skip: > -- > 2.38.0.135.g90850a2211-goog >