Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1311093rwb; Fri, 19 Aug 2022 01:04:27 -0700 (PDT) X-Google-Smtp-Source: AA6agR5XcXhFCWgyW5TZSfl4AhtgshIEXKH1Tq5BYLIPOfVABpHN8PwF5+y9cDs1W/LJ5mrlX83I X-Received: by 2002:a05:6402:4385:b0:440:679a:c3fa with SMTP id o5-20020a056402438500b00440679ac3famr5006925edc.118.1660896267083; Fri, 19 Aug 2022 01:04:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660896267; cv=none; d=google.com; s=arc-20160816; b=hgAf5TOBK1EU0EygKQKZbdshWcM7qfN0ihLYdGrEBcM0FQl6gWx4UVwB54dOjwa+iO ohKhaKb+0g3E4lNkySxboZtdD6adO3tVIvzm5pC3gsNFLF9STJFUX42WvhptR2a3SZNg 9DWdAbprzEpX/i4YD5uxVz48L+RI5kJKXdmN4m4IGX7GntrhL+aWTx/02NIO8eIWMOWf Ofbdwp0D7Id0fUR7W6kYhIR7Chg40SzDZA75n9XFoQqe3bjEPWbR3K2OIEvpVvq1ucHt LDpTr3axIwcihn3BIMZMVD2sVH7BlG4XWlJXUya+opGoG0maxM/QhASl8nd7Ha5w3aRl hFjQ== 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:user-agent:mime-version:date :message-id:subject:dkim-signature; bh=M06Oj1qkv6JJea718PatCeXEmzeDxi4tt2ied10MpBY=; b=aAaqEELW4ITS7Yd5xQR9q3gVnvT4YwJ8VfmDI1DYxEYOXqEox//OD20SoIruI+Q1kD NpJFS7AASTyVFEn8FOr/0EN5gLt0rapgthQ2rD6BsfwX82rQkTYL9GSjoIVwYwNGgNqB PzDRksM8ymhvqc0pfR0fIUjdG4bKGCQ1Bb/GYr/7C5Nnz7w0xBTA2XNcUHEq9MuWpiO0 hXDVFxLXN0q9YwA+HkAAFkr6TVlkBwHNEiuqDknN5O0NSP/uWk1pFgG4Q0+t1hWZN22C mzfYh7RLFgYZ/Y3UNVONlRc4zSfMjiL5qXmWS5rVQYLcSmSwTLRX7jTLr8AOjoATKS63 1qEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=qwQgry7c; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c1-20020a0564021f8100b004408bac1e2fsi2693135edc.370.2022.08.19.01.04.00; Fri, 19 Aug 2022 01:04:27 -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=@amazon.com header.s=amazon201209 header.b=qwQgry7c; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346920AbiHSH62 (ORCPT + 99 others); Fri, 19 Aug 2022 03:58:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345812AbiHSH60 (ORCPT ); Fri, 19 Aug 2022 03:58:26 -0400 Received: from smtp-fw-80006.amazon.com (smtp-fw-80006.amazon.com [99.78.197.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E6DF2409D; Fri, 19 Aug 2022 00:58:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1660895904; x=1692431904; h=message-id:date:mime-version:to:cc:references:from: in-reply-to:content-transfer-encoding:subject; bh=M06Oj1qkv6JJea718PatCeXEmzeDxi4tt2ied10MpBY=; b=qwQgry7cJUftHQNrDsKe8Rzf3kzLDH4tJ1QYqlyiBEOeXt9uWXuXRRRX 2vv1VmNcZhWjmFXpWyRaeGPIdHCmBDljrE2kmneZw1WxSSA2VoC6uIQBV fmJnEgR/+310Eesh7L0yrI4QnqRG+JTFuqhruszVU+pGjrjbrXE/55rju 4=; X-IronPort-AV: E=Sophos;i="5.93,247,1654560000"; d="scan'208";a="120932219" Subject: Re: [PATCH v2 14/16] hwmon: (mr75203) parse thermal coefficients from device-tree Received: from pdx4-co-svc-p1-lb2-vlan2.amazon.com (HELO email-inbound-relay-iad-1d-54a073b7.us-east-1.amazon.com) ([10.25.36.210]) by smtp-border-fw-80006.pdx80.corp.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Aug 2022 07:58:08 +0000 Received: from EX13MTAUWA001.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan3.iad.amazon.com [10.40.163.38]) by email-inbound-relay-iad-1d-54a073b7.us-east-1.amazon.com (Postfix) with ESMTPS id E1B891A00B4; Fri, 19 Aug 2022 07:58:05 +0000 (UTC) Received: from EX19D013UWA003.ant.amazon.com (10.13.138.202) by EX13MTAUWA001.ant.amazon.com (10.43.160.118) with Microsoft SMTP Server (TLS) id 15.0.1497.38; Fri, 19 Aug 2022 07:58:05 +0000 Received: from EX13MTAUWA001.ant.amazon.com (10.43.160.58) by EX19D013UWA003.ant.amazon.com (10.13.138.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.1118.12; Fri, 19 Aug 2022 07:58:04 +0000 Received: from [192.168.95.21] (10.85.143.173) by mail-relay.amazon.com (10.43.160.118) with Microsoft SMTP Server id 15.0.1497.38 via Frontend Transport; Fri, 19 Aug 2022 07:57:59 +0000 Message-ID: Date: Fri, 19 Aug 2022 10:57:58 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.1.2 Content-Language: en-US To: Guenter Roeck CC: , , , , , , , , , , , , , , , , , , "Farber, Eliav" References: <20220817054321.6519-1-farbere@amazon.com> <20220817054321.6519-15-farbere@amazon.com> <20220818202839.GA3431511@roeck-us.net> From: "Farber, Eliav" In-Reply-To: <20220818202839.GA3431511@roeck-us.net> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_SPF_WL 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 8/18/2022 11:28 PM, Guenter Roeck wrote: > The calculation was just changed to use new defaults in a previous > patch. This patch makes it quite clear that the coefficients > are implementation (?) dependent. So the previous patch just changes > the defaults to (presumably) the coefficients used in your system. > That is inappropriate. Adding non-default corefficients is ok > and makes sense is supported by the chip, but changing defaults > isn't. The calculation was changed in previous patch to match series 5 of the Moortec Embedded Temperature Sensor (METS) datasheet. In our SOC we use series 6 which has a slightly different equation and different coefficients. I did the changes in steps. With this last change, both series 5 and 6 are supported, in addition to calibrated vs. non-calibrated modes. In addition the data sheet just recommends default values but they also specifically mention that actual values might vary from product to product. -- Regards, Eliav