Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1451928rdb; Tue, 30 Jan 2024 21:17:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IGH6/H3ZzXyeePUiJFAT+5wK4+T/aGcucpT0O2Ev24Z2TfrJNe4QDUmX6FJBoJv9/zV6iHQ X-Received: by 2002:ad4:4ea6:0:b0:686:170c:a90f with SMTP id ed6-20020ad44ea6000000b00686170ca90fmr873481qvb.42.1706678273225; Tue, 30 Jan 2024 21:17:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706678273; cv=pass; d=google.com; s=arc-20160816; b=rslGqDlqcKNOGlIWziyf47XeJf10dJoPMDD+2a+5fHDtq1NO9/d1AVe33jTzGCOlbl QLA3/n7TBwRJclP4/njdN+wjbTY6hN8KwcfObY3gRdw4EcS/ZRiEP4n8mxb8WMIEBBGT rzhB1yA1kRdMDfsfPEx+s6kQ1Vb9ioOmsmu8YjCBc+ou+MFgBSBqBfaeb0enYTeJIJPf L8/CvGXn3+RVF5W7MRn9bSLZ7EprW0Yysraf81uTqhHkfQuts9DLHUISZplqr/IqKDuD RBmnfH3O/0DHvK7ipzu0Wg9Z/kPUtBF5dWitpbv5vWbJrDCbPmTqQTh2z87iECElfYhR 77oQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=vVKi+G1fpq2+7XfP8vYeCq0vVLccczG/DfMxQszMzg0=; fh=V0gHhsw3pGreQASgOstVuFjzMmnVBRvqzhfemld8NXQ=; b=Z29ckH+aYZJazqhWWNNn30CxNNuYp6FV7y716i6nYIzRP2DU1G9Znv6W7fKHbzO8N6 2y+K1FU08RFtOjukxjyF6xrBNijkWcZVVnDmGXLt/7ggiH9+8FjrqAEczlzM5Aok00BR bZfB9IN2EVmSOUH7TTTD/Oim02fWtA/GcZOlv0VCyAvYIKyXJE2jHrJO+NMAO2C1ehuP XLzUB5Zm0Qh9EuOxlul/Zqn+WKkHgP00zlZGP73TWBSAf6ADYOC8PSdgxCRv2+wwTFh4 TChX2FkFdQwnVm9Yr4VcIKKG7wC3j7CEah2kUBOvMvU4ylsxi+fOk8Qam7XqUiQUACLp KysA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-45763-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45763-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCXRCA4D94mSkkprGIyTef9j7LLts9HkTNcunGnWy/TvMHdF/T0UxMOU8wdcFrP13MPpEQbiIAn5xwD9BF5jNs6ZGg6QOSfBFaj7BsJqMA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p24-20020a05620a113800b00783de752218si10445686qkk.227.2024.01.30.21.17.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 21:17:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45763-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-45763-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45763-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 024571C22E8E for ; Wed, 31 Jan 2024 05:17:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EE7DB3D54F; Wed, 31 Jan 2024 05:17:31 +0000 (UTC) Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 80D073DB92; Wed, 31 Jan 2024 05:17:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.142.180.65 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706678251; cv=none; b=ScZI5rwhpqSq6+1bAvk12Kn1RGv8hyX92Nyzc3FkFIJATWH7WTUwhrdh7Zfzmd1WWVKNJ9SFIYWHeeA2kJG/wb2HL3W15K3za1pu4GdrQxjcyOM3Folc3kKXzPj+8BAFmI1k9UFYtl04nTzmApIfIXGuHSJoj6oNLEWWAFh8G+E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706678251; c=relaxed/simple; bh=gxAtGaUULQtWAZGfYG0oHdCtKw5TMqoELHvZxCqaRyg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ArNadrt0jnv7nayYqhYZbE2uV0NY+rvwaX8q8BYeoAUoSBpbeIVM2upHBEA/73TqKxPWsMNqr8hEk5lpKQSX1q4rDlwOcchcXFpkfN7X3+cygLmfuWXBWKMuo55sCaT01gzI4q+Je5ReNmqnKKEbwCzB3hA2EdyNTtmuORJ+1HE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=none smtp.client-ip=185.142.180.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96.2) (envelope-from ) id 1rV2yM-0001i0-0l; Wed, 31 Jan 2024 05:17:18 +0000 Date: Wed, 31 Jan 2024 05:17:14 +0000 From: Daniel Golle To: Daniel Lezcano Cc: Frank Wunderlich , Markus Schneider-Pargmann , "Rafael J. Wysocki" , linux-pm@vger.kernel.org, Amit Kucheria , stable@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Matthias Brugger , Zhang Rui , linux-arm-kernel@lists.infradead.org, AngeloGioacchino Del Regno Subject: Re: [PATCH] thermal/drivers/mediatek: Fix control buffer enablement on MT7896 Message-ID: References: <20230907112018.52811-1-linux@fw-web.de> <20230913083529.3bgjl6rvfmixgjnd@blmsp> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230913083529.3bgjl6rvfmixgjnd@blmsp> Hi everyone! On Wed, Sep 13, 2023 at 10:35:29AM +0200, Markus Schneider-Pargmann wrote: > 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 Reviewed-by: Daniel Golle Tested-by: Daniel Golle Kind ping to thermal and mediatek maintainers, please merge this patch. https://patchwork.kernel.org/project/linux-pm/patch/20230907112018.52811-1-linux@fw-web.de/ https://patchwork.kernel.org/project/linux-mediatek/patch/20230907112018.52811-1-linux@fw-web.de/ > > 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 >