Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3015309rdg; Tue, 17 Oct 2023 01:43:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGS5HFeTAAXhjrnZq6RfN7/nmLAC81RlN2X45QNYfUDr1ujDyABKZ0NHvga3LXc+2zRt9/q X-Received: by 2002:a17:90a:db0a:b0:27c:f845:3e3f with SMTP id g10-20020a17090adb0a00b0027cf8453e3fmr1561467pjv.1.1697532212776; Tue, 17 Oct 2023 01:43:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697532212; cv=none; d=google.com; s=arc-20160816; b=GKElEmbADAZIaDzLk2FK3g5CmvTs4DZolb1Fz/1MR9xMKzsRlTOqwKDCAHl0ZsV03M SBgAAMlQTtKeUg/FgpqLxzje00eLiHPGenPZUuoA/kYRbGJbopunP7GoEJofGC9sPvA+ eSPQjL0D4KNUU3I46m6eDrJdeCQEaKQgUReHXIEx+NGTQMEPN3ADnoLQZh/PJMc8icLc R9PzvTFrV6/WbMxncvciP/6MfD4X0vsSJcb/Kf+Xc3CvqNyJkrCeSBJRWC/AtxAFgSo0 kpUzESLFGHyW+HrTNQjU1UdLB1vmvXdgtiR/ZfXge9r94qAcWDZzwdKbyUzL24te8vLa PAZw== 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=5mWE3ioyQaxDSod4iM87Tqs0+a3jEsBLfvJyNoNblIM=; fh=WECXTtKZeK71qW5mhyPZ9pI/snMgnLfNC1QGTCjxTjY=; b=f6ZVvFJJNOxKhI611WkoxGIQ9exDQCbdaiiOdZy+OULNSQs0G7GXSpCKY3p74b/IVM GsHLSlp53t8rkMCSstwhQ/DQV28y6xMAwVvre6DBuVSmtT5qsA6wkwNibJ3mSR1Slhkh K+aSXVVNn9+TQNWM6s2E1mgguz6Ce4HaaUJ4xBlKQjDzATn9WoRl46YyYooO55dI0Aqc ytotead5zk2LUH+sjoe+2Cw1ojoYeATfWLayRPb6kI1566sH9mkHt9dRVUxzoIIPztSi Zs/K/WaOQhNA9CDZcFI1b5RJ2gWCecCt2Pt7MWsGNfm3TSLany5oLnPf6TD28e/eH+zs yfaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=tF9iloDL; 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 lk4-20020a17090b33c400b00273e2f407casi8333626pjb.76.2023.10.17.01.43.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 01:43:32 -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=tF9iloDL; 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 6C7C4803D8F7; Tue, 17 Oct 2023 01:43:30 -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 S234773AbjJQInM (ORCPT + 99 others); Tue, 17 Oct 2023 04:43:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234770AbjJQInI (ORCPT ); Tue, 17 Oct 2023 04:43:08 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1963F9 for ; Tue, 17 Oct 2023 01:43:03 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-99c3d3c3db9so869051066b.3 for ; Tue, 17 Oct 2023 01:43:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1697532182; x=1698136982; 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=5mWE3ioyQaxDSod4iM87Tqs0+a3jEsBLfvJyNoNblIM=; b=tF9iloDL0t/HWB9JL9Ck7DJkZxdjUa/X5j2/p2NIpPHklBxRJzZfiKvaOlLkBsGAYh OcHRVsI5YP09w3xdnO1vMxyvwL24d99KN9k/CsTH7yX8PN7x2m8xyXHoJAB3NZstWBu+ 0tzlPysYF8LfOSi5E1kAVA0OHTpsrzDbCuKp7n99YEtZ3WOIgHgYKAFM+pJqTl3lNytd V2R/+145GQj1xzdK8uSG9wSmHl9+96DbRL+lynd7jxf21lDo5ykjvbaUIFdkPMilkAcZ vHEzHAVxvL4fIut3OeFQlL2eEYJH3ih7M6kXDGlHO5PXpRh/f91lGZmy4+J5BQ4eNgpu xVUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697532182; x=1698136982; 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=5mWE3ioyQaxDSod4iM87Tqs0+a3jEsBLfvJyNoNblIM=; b=K5bH1qxHbCHnGh/P0yRvhDZSExT5WKlDDGm6buvlXdSe5KH2KAIJmyDJB4+MEQB+dL yiAA1Vbbt026Pz/P2W4cpnaLrIKrNlr9IP7CQbyoOkuM9ZgoTcQUoj1nCZbZZRGoXxW4 GmWeG2pNEMk+8FxVFPFeWtE1habcJck+Qdhq2Z903fyj7GUVDTtN0LFtKNRfKpgH5XLJ wMM7zjLqYvhimMTYewTBiP635feMyqAPLVJ4qPFJg2WGA/AeAHHDNf/1kQ4n3+DCly3s 5zVH6eqQWW4q1gujMcp4s9JWHc/8w6f7aUuamZAn3Y56mCPZjKyu3Eq71xIKb5VkwKYj VHNg== X-Gm-Message-State: AOJu0YxUC8/pZaLC49W5sMMHpYfBdToA0V2hVMP0YYyYL5PMMd4Fjf9M kIlsFmpEKzYIw2LSIK+mmL9ThQ== X-Received: by 2002:a17:906:c105:b0:9be:aebc:d479 with SMTP id do5-20020a170906c10500b009beaebcd479mr1140349ejc.19.1697532182082; Tue, 17 Oct 2023 01:43:02 -0700 (PDT) Received: from blmsp ([2001:4091:a246:8222:872:4a5b:b69c:1318]) by smtp.gmail.com with ESMTPSA id j5-20020a170906474500b009a1c05bd672sm789525ejs.127.2023.10.17.01.43.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 01:43:01 -0700 (PDT) Date: Tue, 17 Oct 2023 10:43:00 +0200 From: Markus Schneider-Pargmann To: Daniel Lezcano , "Rafael J . Wysocki" , Amit Kucheria , Zhang Rui , Matthias Brugger Cc: AngeloGioacchino Del Regno , Frank Wunderlich , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Frank Wunderlich Subject: Re: [PATCH] thermal/drivers/mediatek: Fix probe for THERMAL_V2 Message-ID: <20231017084300.c6wsozaqg7ztgkf2@blmsp> References: <20230918100706.1229239-1-msp@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230918100706.1229239-1-msp@baylibre.com> 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 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]); Tue, 17 Oct 2023 01:43:30 -0700 (PDT) Hi Daniel, On Mon, Sep 18, 2023 at 12:07:06PM +0200, Markus Schneider-Pargmann wrote: > Fix the probe function to call mtk_thermal_release_periodic_ts for > everything != MTK_THERMAL_V1. This was accidentally changed from V1 > to V2 in the original patch. > > Reported-by: Frank Wunderlich > Closes: https://lore.kernel.org/lkml/B0B3775B-B8D1-4284-814F-4F41EC22F532@public-files.de/ > Reported-by: Daniel Lezcano > Closes: https://lore.kernel.org/lkml/07a569b9-e691-64ea-dd65-3b49842af33d@linaro.org/ > Fixes: 33140e668b10 ("thermal/drivers/mediatek: Control buffer enablement tweaks") > Signed-off-by: Markus Schneider-Pargmann Did you have a chance to have a look at this fix and the other one for auxadc_thermal? https://lore.kernel.org/linux-arm-kernel/20230907112018.52811-1-linux@fw-web.de/ Thanks! Best, Markus > --- > drivers/thermal/mediatek/auxadc_thermal.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/thermal/mediatek/auxadc_thermal.c b/drivers/thermal/mediatek/auxadc_thermal.c > index 843214d30bd8..8b0edb204844 100644 > --- a/drivers/thermal/mediatek/auxadc_thermal.c > +++ b/drivers/thermal/mediatek/auxadc_thermal.c > @@ -1267,7 +1267,7 @@ static int mtk_thermal_probe(struct platform_device *pdev) > > mtk_thermal_turn_on_buffer(mt, apmixed_base); > > - if (mt->conf->version != MTK_THERMAL_V2) > + if (mt->conf->version != MTK_THERMAL_V1) > mtk_thermal_release_periodic_ts(mt, auxadc_base); > > if (mt->conf->version == MTK_THERMAL_V1) > -- > 2.40.1 >