Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3152841rdb; Wed, 13 Sep 2023 03:57:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFbjRy99ad5mDWrUwX0ra4tLgymJoAW9ultqqOScvu7SAYX6P2YHkweL24xJfzZXSmMLYsM X-Received: by 2002:a05:6808:219a:b0:3a7:a548:d92a with SMTP id be26-20020a056808219a00b003a7a548d92amr2990599oib.5.1694602629483; Wed, 13 Sep 2023 03:57:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694602629; cv=none; d=google.com; s=arc-20160816; b=yUMsn00o3oRgVUJRv+6mGQUnVyzMGUUMpUg3wGb5pmqyoTkhHX/ca94T+0KcD9fAGR Xnias6tOdInrQHbe2QhXV0JhIGoFYeOcbxjsSE2hx7yIaC/jqRX/9JKJIkBGtuN/127v S/7XDk1dVGJv67x+R7/yrGhnosmLlNnZjjzbdN/nul3MC6nVW7tvpWiiUaoBLcHt0uSw 783uQ8am+VCgpkmjH4PgE3kd/kqOx6DoT8cPPuRJyUKk6LLfrPAPfUboSHtns3sFwfJ4 S65OlJVac1moEObE7bUwv71SRUjpScOPqSlcO3/oA+uEa5fZZyGw89v9O/mJaesmJEVr vdqQ== 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=vzZ6MgD3pf8m+rx1Xv6RC5XGWASwhi1UIBmWgNbxJHM=; fh=9HVWVq5bg2SzN8NXoJ6y464/DuneY1+SAKfm1KYbSKM=; b=NtGsqBL1r2Duu/Xt5g4bVazx7MqliMQuA/XrC/SyKvswmJNCbrOJLxCJLYWr0hG/TB 0TH+EAMk7mjZQZN2HFP/NrSfU1Usvg6qRkYeBEMfb+J20NBFIJN/WotPirzMMo2+3Msy YGqYTwzYOW/N2i9KLmZx3ACymWTjm8/y4cDdQW9fcM1BHB0X7D0qG4cGzY4H7Jcn3n93 8iFt/LitspjV21rEGh+uPH/CSICv9W2IXPT0N0v+SKLrkzclKCCjaq4z2Md59Wv4LE60 fysyjoPTTnoy39tyyt3N0f3KcrJ92O2Oz/LgMmisS8dSHyDOQVZ32kWH2NAY8IkO3JfV wEvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=WiqwXqpC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id v202-20020a6361d3000000b0056533c00e83si5472033pgb.413.2023.09.13.03.57.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 03:57:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=WiqwXqpC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id DAD04808D491; Wed, 13 Sep 2023 01:35:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238961AbjIMIfj (ORCPT + 99 others); Wed, 13 Sep 2023 04:35:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233174AbjIMIfh (ORCPT ); Wed, 13 Sep 2023 04:35:37 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE806196 for ; Wed, 13 Sep 2023 01:35:33 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-9a9d6b98845so153575566b.0 for ; Wed, 13 Sep 2023 01:35:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1694594132; x=1695198932; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=vzZ6MgD3pf8m+rx1Xv6RC5XGWASwhi1UIBmWgNbxJHM=; b=WiqwXqpCw5ZCaEqOwUSFTsfNpCtAmJ/kyuxym9ki+G6ezs+Jz+wxdVawpkPlg43+e8 cF/OznCHufRkwjpKX5k2zxGz0bqDLbnclKoTBPtKQvIXnU8lekABqWnKjfkEGkxc30Oy HkuVqoxSYUo5XOpnE+8IksqyGNrrfmiSHJ8BZFCtTbNRcWeOuDfhwqEnM0k2vnWWbIlR kPTTysAppwaHdpmMVKbclk5QX+NYVyBrCupVPxJeN3gFHW0KnAlMERmOW9jylvlFFI7h X7UH/zD73yUD5avrjkopjm8Wd/hbazAAhl9D4O/pKXnhtQPCKd0+pTRUjWVEWV46D7Y0 SeMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694594132; x=1695198932; h=in-reply-to: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=vzZ6MgD3pf8m+rx1Xv6RC5XGWASwhi1UIBmWgNbxJHM=; b=I98KGqMmo6nU6IdYsCbfTWAPNVCZTe1tsvOxY0f6U2Q2V7BVvg/N5mQc/BRkEgKPIm qK4O/RpDgNWwpM1lc6A0ecCtXclsxX5595tM0EE1ik4F8SpYTJfMyJP7UJH7H5irDWWU yQGWyxYo1vDDMd1HM3fbDcsmb6fxlnGjRPGxt2YxjvYRVs0b3pZYCu9ho11IGGQSKfZy vSleJ+JlWnTsEkVLo4DBMPdk31F+vtEyJoDugi8nnY5LfnKO4gmHU1btCod+OxFmpytG 8uyLcKuiabYP38nho3pBTp62wRM/o0onFJn6y9KJKm5cnywjVHdO6Hf1w76N5Co/9ywA 5Iow== X-Gm-Message-State: AOJu0YyJ59A7TmocI3hmWalnWpyonL1U5Ey7gJYDZhC4dGOAk/eFt+px IWhU+tUCFHwfLm0d80kqaMEPYg== X-Received: by 2002:a17:906:c112:b0:9a4:11a3:c32b with SMTP id do18-20020a170906c11200b009a411a3c32bmr7346391ejc.29.1694594132177; Wed, 13 Sep 2023 01:35:32 -0700 (PDT) Received: from blmsp ([2001:4091:a246:82a0:6611:d59a:8ba3:9a66]) by smtp.gmail.com with ESMTPSA id lz5-20020a170906fb0500b0098e78ff1a87sm7990464ejb.120.2023.09.13.01.35.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 01:35:30 -0700 (PDT) Date: Wed, 13 Sep 2023 10:35:29 +0200 From: Markus Schneider-Pargmann To: Frank Wunderlich Cc: linux-mediatek@lists.infradead.org, Frank Wunderlich , "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Matthias Brugger , AngeloGioacchino Del Regno , Daniel Golle , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, stable@vger.kernel.org Subject: Re: [PATCH] thermal/drivers/mediatek: Fix control buffer enablement on MT7896 Message-ID: <20230913083529.3bgjl6rvfmixgjnd@blmsp> References: <20230907112018.52811-1-linux@fw-web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230907112018.52811-1-linux@fw-web.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 13 Sep 2023 01:35:49 -0700 (PDT) X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,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 agentk.vger.email On Thu, Sep 07, 2023 at 01:20:18PM +0200, Frank Wunderlich wrote: > From: Frank Wunderlich > > Reading thermal sensor on mt7986 devices returns invalid temperature: > > bpi-r3 ~ # cat /sys/class/thermal/thermal_zone0/temp > -274000 > > Fix this by adding missing members in mtk_thermal_data struct which were > used in mtk_thermal_turn_on_buffer after commit 33140e668b10. > > Cc: stable@vger.kernel.org > Fixes: 33140e668b10 ("thermal/drivers/mediatek: Control buffer enablement tweaks") > Signed-off-by: Frank Wunderlich Reviewed-by: Markus Schneider-Pargmann Thanks for fixing! Best, Markus > --- > drivers/thermal/mediatek/auxadc_thermal.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/thermal/mediatek/auxadc_thermal.c b/drivers/thermal/mediatek/auxadc_thermal.c > index 843214d30bd8..967b9a1aead4 100644 > --- a/drivers/thermal/mediatek/auxadc_thermal.c > +++ b/drivers/thermal/mediatek/auxadc_thermal.c > @@ -690,6 +690,9 @@ static const struct mtk_thermal_data mt7986_thermal_data = { > .adcpnp = mt7986_adcpnp, > .sensor_mux_values = mt7986_mux_values, > .version = MTK_THERMAL_V3, > + .apmixed_buffer_ctl_reg = APMIXED_SYS_TS_CON1, > + .apmixed_buffer_ctl_mask = GENMASK(31, 6) | BIT(3), > + .apmixed_buffer_ctl_set = BIT(0), > }; > > static bool mtk_thermal_temp_is_valid(int temp) > -- > 2.34.1 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel