Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4503358rwb; Tue, 6 Sep 2022 08:23:09 -0700 (PDT) X-Google-Smtp-Source: AA6agR4UXMCy62SUdznNLRYaTVdKsBFODsA2qKqiMcDKQNfE0VXB6cA21CYqY6ovYjx64+QYWc6/ X-Received: by 2002:a05:6402:4cf:b0:446:42cf:e49d with SMTP id n15-20020a05640204cf00b0044642cfe49dmr47789593edw.41.1662477789180; Tue, 06 Sep 2022 08:23:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662477789; cv=none; d=google.com; s=arc-20160816; b=0H0fnEl68hp4WRt3cBDGmyG8j80pSocpi31TCB2La6NXRyzxSD1liHtzcXpELaKHWf 7V3qn/cLE7HfBNYx0STJPH7gWCcRHH6GRuAM3FZkqaKsqom55iMWJRwFXlix2R/gMz9c 5D5VjeRlWuL8Z7eKKcZ7700LjJhWAq+aUCqJ5NnReLh12NQoVSzCJjKWVoZkFJDVCZ4H q1MNCH1Tjpm9SeKbcBfd9rl81EX6qyQ0lsHLiwndrvFcSktaFSNEDyrvIH40erdRdtTF bsj66KCKaXTJ9ofdJHviLX4XkjHu+zASq5j67Az03neZ3vUQiqskvWRoGAO6VmqCLB/+ +O3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=0G0y1vEOs3e+eutSvVkiKEda2L3eYojXUSzD/hLRbgM=; b=itHOkp/zg+wBNVk84L4sLoB5mrBOAYGdEHhpaxuWNfhGVzDktpY59wzupHPMJPX7W6 AZ9Hrhm2+pmGpf6KPTrVcxtqtRyg6+EI7+FatJTjx1PCgvuqCAvtQNguVnNYCKyHS/pH lsWjcN4vOO3Tkd0WZAJW3LPo6pZ8Yj32mjr50i833gyCrxAiM3n5tu8MxfP0Vf5uoxga weAvubcE12WbNWEVuD8qI5gAMch2ahND5zAbjZrexeBvo79unPU8o0LMlaZztZ4Jf4v5 cWzRF3NrdWFIuy5egTJre3HbAr7ilfeoyJRwARm/jChA25mT34esTjynID2vmjTDvF7F cHGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fWWJtozf; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fp32-20020a1709069e2000b00741795a8603si8434078ejc.196.2022.09.06.08.22.43; Tue, 06 Sep 2022 08:23:09 -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=@intel.com header.s=Intel header.b=fWWJtozf; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233998AbiIFPQR (ORCPT + 99 others); Tue, 6 Sep 2022 11:16:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233914AbiIFPPt (ORCPT ); Tue, 6 Sep 2022 11:15:49 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E71B74DB6C; Tue, 6 Sep 2022 07:29:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662474546; x=1694010546; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ybgSo2BkoIeNrG9pnEwHuQd0zdtCaKmVHLLWorPRU10=; b=fWWJtozf+jgh+pAEhkuFZw0bj1pHoIa70kXfVAOpA4fstDTl+7TVGPXB 0jqRZrP91dwqaKikkAan1wDsoPZx2O9TFH7d5yHHd85PXc3d1Q7WL+KVc ihKELM9zLhwjYVjrXS/R7hqvRPIp456ZzamocEm5M0kaB4yt4e6bE0jHN pJAHfPEIxkCrZ3cLMHDbalwTu18EljJaLQNll1y+vzYhqp3GzceimE/P4 svSjhva5LsN59nN5fbcc6Ts13PHjoV/aJlYyjOXbls/IUmHik0VNf/fUV x4b5uX8r1rFOqK7/QCDN5LBYRSPH2jgPzaSA/dCVHrfTunGxs+/G6aKpj A==; X-IronPort-AV: E=McAfee;i="6500,9779,10462"; a="276344870" X-IronPort-AV: E=Sophos;i="5.93,294,1654585200"; d="scan'208";a="276344870" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Sep 2022 07:26:27 -0700 X-IronPort-AV: E=Sophos;i="5.93,294,1654585200"; d="scan'208";a="756383261" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Sep 2022 07:26:24 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1oVZWv-0099cw-3D; Tue, 06 Sep 2022 17:26:22 +0300 Date: Tue, 6 Sep 2022 17:26:21 +0300 From: Andy Shevchenko To: Eliav Farber Cc: jdelvare@suse.com, linux@roeck-us.net, robh+dt@kernel.org, p.zabel@pengutronix.de, rtanwar@maxlinear.com, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, hhhawa@amazon.com, jonnyc@amazon.com Subject: Re: [PATCH v4 00/21] Variety of fixes and new features for mr75203 driver Message-ID: References: <20220906083356.21067-1-farbere@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220906083356.21067-1-farbere@amazon.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Tue, Sep 06, 2022 at 08:33:35AM +0000, Eliav Farber wrote: > List of fixes: > - Fix "intel,vm-map" property to be optional. > - Fix VM sensor allocation when "intel,vm-map" not defined. > - Fix multi-channel voltage reading. > - Fix voltage equation for negative source input. > - Modify the temperature equation according to series 5 datasheet. > - Fix coding style issue. > > List of new features: > - Modify "reset" property to be optional. > - Add optional "moortec,vm-active-channels" property to define the number > of active channels per VM. > - Add support for mr76006 pre-scaler to multiply the voltage result by 2. > - Add support for series 6 temperature equation. > - Add coefficient properties to fine tune the temperature equation. > - Add debugfs to read and write temperature coefficients For all code patches (means no DT ones) Reviewed-by: Andy Shevchenko > --------- > > Changes between v3 and v4: > *) Provide a Fixes tag for all fixes in the series. > *) Start series with fixes. > *) New patch to add description in moortec,mr75203.yaml. > *) New patch to add moortec to vendor-prefixes. > *) Fix moortec,mr75203.yaml checker errors. > *) Remove validation of device-tree parameters. > *) Fix per patch specific comments (detailed in each patch). > > Changes between v2 and v3: > *) Add "moortec" prefix to all new device-tree properties. > *) Change order of patches. > *) Add explanations to better understand the changes. > *) Change "reset" property to be optional and remove the > "reset-control-skip" property. > *) Split the patch for "fix multi-channel voltage reading" to two > patches. > *) Change pre-scaler property format and fix typo (scalar --> scaler). > *) Fix voltage equation to support negative values instead of limiting > value to zero. > *) Temperature equation - protect from overflow and add clamping. > *) Add new "moortec,ts-series" property to select between temperature > equation of series 5 or series 6. > > Changes between v1 and v2: > *) Fix compilation error for patch 08/16: > "warning: ISO C90 forbids variable length array" > > --------- > > Eliav Farber (21): > hwmon: (mr75203) fix coding style space errors > dt-bindings: hwmon: (mr75203) fix "intel,vm-map" property to be > optional > hwmon: (mr75203) fix VM sensor allocation when "intel,vm-map" not > defined > hwmon: (mr75203) update pvt->v_num and vm_num to the actual number of > used sensors > hwmon: (mr75203) fix voltage equation for negative source input > hwmon: (mr75203) fix multi-channel voltage reading > hwmon: (mr75203) enable polling for all VM channels > dt-bindings: hwmon: (mr75203) add description for Moortec's PVT > controller > dt-bindings: hwmon: (mr75203) change "resets" property to be optional > hwmon: (mr75203) skip reset-control deassert for SOCs that don't > support it > dt-bindings: vendor-prefixes: add vendor prefix for Moortec > dt-bindings: hwmon: (mr75203) add "moortec,vm-active-channels" > property > hwmon: (mr75203) add VM active channel support > dt-bindings: hwmon: (mr75203) add "moortec,vm-pre-scaler-x2" property > hwmon: (mr75203) add VM pre-scaler x2 support > hwmon: (mr75203) modify the temperature equation according to series 5 > datasheet > dt-bindings: hwmon: (mr75203) add "moortec,ts-series" property > hwmon: (mr75203) add support for series 6 temperature equation > dt-bindings: hwmon: (mr75203) add coefficient properties for the > thermal equation > hwmon: (mr75203) parse temperature coefficients from device-tree > hwmon: (mr75203) add debugfs to read and write temperature > coefficients > > .../bindings/hwmon/moortec,mr75203.yaml | 97 ++++- > .../devicetree/bindings/vendor-prefixes.yaml | 2 + > drivers/hwmon/mr75203.c | 387 +++++++++++++++--- > 3 files changed, 421 insertions(+), 65 deletions(-) > > -- > 2.37.1 > -- With Best Regards, Andy Shevchenko