Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2533737rwb; Sat, 24 Sep 2022 09:58:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Aie9+9bVuU7oH8SkM+jm+tOvKBNut/eCAhgOWiYdKxjdsiFcIXIHCbY4zeXKvyc3Xe01a X-Received: by 2002:a05:6a00:328b:b0:53e:816a:ee5a with SMTP id ck11-20020a056a00328b00b0053e816aee5amr14774661pfb.71.1664038695372; Sat, 24 Sep 2022 09:58:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664038695; cv=none; d=google.com; s=arc-20160816; b=Ma51UyYRI27kwR9x7r1iFBjvOE47bYq7NAPhvIu8cYWRjW9oPP4V4UXHKAq1I7jYvR 0ZjdkTrg4X7O77jXXWhCXRfbMzFQiC54eEHHB+J4LzskMIUBfQV2iC7XHcEofRPzKIeV ouq82ovr501Om/wTNgniHue//FhYF0hHVvw2u73pkwYG3pzFRtwzbJj7vZYQWGdb59WO SAeszFssWrMpvhUb/XBPFZUVsWcNCuTz/1zGNs1YEummZTNVlK5Dkq2UTinMaNTdFEgp nuK5zlvSOnL/fysD1F6AK3ju9ATVMcSr21ucX9v33PwtFVYmcm++6lf95uRnMlhLsLyh i0KA== 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=UN7dIy5bKqPGCHAvZ6RCx2KKfneFm8jKTHL6ecufoDA=; b=OsrBf9kckJ1hX2LDBbYEReL6jUF4ToYWMri57TJEY5KMGMVlEawfTmbI10PD9d4XDM goKHtYUEzwfvYuMgDjUR8V4MJEvF7iwaqoqOjx9xcAzdV8eNyJKOIdjEZfY0hmaIaxSV HZbH1hZpUK7laRFstcbz6R08STxxMRxIuap9KpRxg/zApGAaRbGdFKbE2eW27J/cTULc ix/29X9jvTgA+KJGQM0VPdbYuEKS4kCkH1821USAJ/frqIj5FaX2KTHHcVnMMFfFFFd4 iJIcDSdS4HgmMrDhL+qZdaZeRtaYCi/VBnR14apMk2VNVUzNM6dX9E8G+SO8h+joMs2P LASA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mVderDBC; 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 u2-20020a17090a518200b002008ba26a2dsi66541pjh.65.2022.09.24.09.58.03; Sat, 24 Sep 2022 09:58:15 -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=mVderDBC; 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 S233734AbiIXQjF (ORCPT + 99 others); Sat, 24 Sep 2022 12:39:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231324AbiIXQjD (ORCPT ); Sat, 24 Sep 2022 12:39:03 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8316F7CB67 for ; Sat, 24 Sep 2022 09:39:02 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id a8so4683673lff.13 for ; Sat, 24 Sep 2022 09:39:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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; bh=UN7dIy5bKqPGCHAvZ6RCx2KKfneFm8jKTHL6ecufoDA=; b=mVderDBC0HH08MVkJlNWWaMuX9Uy+dZ09IDw5z/QycijWXh4HJdYAakyKlkZVqZltK ib+yGSQXrCRHVF24k8Z8r1/6/BwogwRVz0y3Nn6aNO/suC0R+PpAY/bw2edm1EHOd4EX fDakEc4Mjb9wd4T3ew3OebRtfB96/0TfQUeilsx+P5AF0Re0F6i3vYBR2Tw8EYnjNnNL WDq3Bzzr6oioNdAe2h3GzgIai4NZ8W0Hogj/uj1iM4zIfraw6GrHxANDdXJq6evs1d5k ZIr6dHheJABrNzwiIyUjmzkh1GsbnzBf1M4PTh0wiveN8bZRoLHYS98q2uUgnKksh2iw WiAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=UN7dIy5bKqPGCHAvZ6RCx2KKfneFm8jKTHL6ecufoDA=; b=YUcntMlR0T2Rf+HrXrxrCCMutjkkAyE30KAiitaqWlydISlxHjh1BCdDnvbWAHNj4X CYoFfaDSKci1Blp6cHLn2ArEg2eqndoKCCsKjNiEjJFGRG6fg54WGrLLtV2OaF7ulDC8 HKK4leUM3oNsK7MKeQl7As+5kooeOHjRoD45py2sE8MLY6hE3lWuGyoV9k2bE87msFv9 CMqhl/QkwqYk9n7reP+TY1dkkHj8W3ktHXEaPqsYbDlUjT+EUoKguVVYJDEa0zzCgvpi WRZn/O6hpNCT8xWsjSx8HGZ5iLynXccuQfy7cMWQmgXYFjQtUgjN3ItsRdZEaC+WxF6W aZaA== X-Gm-Message-State: ACrzQf1E6z46vKpx2YJnzUKIToLiMvxczDLIdoPz1KDBSIjHDHKO7NCe sIsa4/bKLXucCFXOls2lBPX2LRTkC7LXaw== X-Received: by 2002:a05:6512:308f:b0:49a:5a59:aa25 with SMTP id z15-20020a056512308f00b0049a5a59aa25mr5220074lfd.44.1664037540847; Sat, 24 Sep 2022 09:39:00 -0700 (PDT) Received: from [192.168.1.211] ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id j12-20020a056512344c00b00494a1b242dasm1946332lfr.14.2022.09.24.09.38.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 24 Sep 2022 09:39:00 -0700 (PDT) Message-ID: <9ef673f2-4296-8761-4d7a-dca323ba272e@linaro.org> Date: Sat, 24 Sep 2022 19:38:58 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH] thermal: qcom: tsens-v0_1: Fix MSM8939 fourth sensor hw_id Content-Language: en-GB To: Vincent Knecht , Andy Gross , Bjorn Andersson , Konrad Dybcio , Amit Kucheria , Thara Gopinath , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Shawn Guo , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: bryan.odonoghue@linaro.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org References: <20220811105014.7194-1-vincent.knecht@mailoo.org> From: Dmitry Baryshkov In-Reply-To: <20220811105014.7194-1-vincent.knecht@mailoo.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 11/08/2022 13:50, Vincent Knecht wrote: > Reading temperature from this sensor fails with 'Invalid argument'. > > Looking at old vendor dts [1], its hw_id should be 3 instead of 4. > Change this hw_id accordingly. > > [1] https://github.com/msm8916-mainline/android_kernel_qcom_msm8916/blob/master/arch/arm/boot/dts/qcom/msm8939-common.dtsi#L511 > > Fixes: 332bc8ebab2c ("thermal: qcom: tsens-v0_1: Add support for MSM8939") > Signed-off-by: Vincent Knecht Reviewed-by: Dmitry Baryshkov Daniel, gracious ping for getting this patch into 6.1. > --- > Fixes reading GPU temperature on msm8939 idol3 with current WIP dtsi > --- > drivers/thermal/qcom/tsens-v0_1.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/thermal/qcom/tsens-v0_1.c b/drivers/thermal/qcom/tsens-v0_1.c > index f136cb350238..327f37202c69 100644 > --- a/drivers/thermal/qcom/tsens-v0_1.c > +++ b/drivers/thermal/qcom/tsens-v0_1.c > @@ -604,7 +604,7 @@ static const struct tsens_ops ops_8939 = { > struct tsens_plat_data data_8939 = { > .num_sensors = 10, > .ops = &ops_8939, > - .hw_ids = (unsigned int []){ 0, 1, 2, 4, 5, 6, 7, 8, 9, 10 }, > + .hw_ids = (unsigned int []){ 0, 1, 2, 3, 5, 6, 7, 8, 9, 10 }, > > .feat = &tsens_v0_1_feat, > .fields = tsens_v0_1_regfields, -- With best wishes Dmitry