Received: by 10.223.185.116 with SMTP id b49csp5934959wrg; Wed, 7 Mar 2018 22:08:13 -0800 (PST) X-Google-Smtp-Source: AG47ELsEhYOz8okOMw7OjWc4ddqD0telejffa/lwqiftdPK5ykEhn2l4b10CITudsrueiMepG0qv X-Received: by 10.99.43.67 with SMTP id r64mr20062551pgr.403.1520489293756; Wed, 07 Mar 2018 22:08:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520489293; cv=none; d=google.com; s=arc-20160816; b=wSGRlqDTvZqx6iN7plMev0twuG1QR5Mvj4AeaoAdF/u6sHRVch/IkmWgvj6Cv/na4m cPGbyobrQQGGVshr3aKNlNWN1Lp99H2Ai4AZb9GvFmrSvGYUT4ovJdImRELUCZgxz3q5 dwD/jabj9iaA71S43LHJRkObetN7VJkv0kTJBbfxcBEZnQOaZIhRkYlOgA/7oyS1TVrk ufkS0H9meFCqLe2DW6M+RenCRPtCBlCdh2Ve8cGl+0Oe8Ddpk6Sd/rdd/PfD2TG5x8Qm QobrGgASwKHfDZaunD5+1O4qan9PFS4s3apqgrUeJ4NG0GTGiemvZRmzHAjo4nbjrjPP Sbuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=zSwvv6xPKPswfUXB7rFZFjzZp91xdXGkhb3HnCZKkKk=; b=f1/TthwZkbEgXtGdLB5A/j0EEOBiuMgXSpGcsbOej7Jgh3yqvfArE0UFrC2PkWlqUW E4FYyYova+Z7MxG0Jg9czhZlsbqatuUWB+rDbtRecFN4vawdf14brieHhCFXvmBKdruf bKnSS8DGjn5KfizgWmRGAKzIG44L8sKSqUtH+mF8SR4k3q7qXnWCH5hukwvr5dP/nG4o l+q7uiFWYuQSz4+5Upe326uZpNgsa8RAf/QIPyJATgOe5ObFhtPoMBMqY6I1FswpBCXq eDGFk1g7tqfCtDj8E1lgj++dJSZPIjxbytcUKsEcOKmc1ZQJfgZdeG5R41f8bhPvzow/ HS4Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 18si15142571pfh.118.2018.03.07.22.07.58; Wed, 07 Mar 2018 22:08:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935575AbeCHGGh (ORCPT + 99 others); Thu, 8 Mar 2018 01:06:37 -0500 Received: from hqemgate15.nvidia.com ([216.228.121.64]:10251 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934897AbeCHGGd (ORCPT ); Thu, 8 Mar 2018 01:06:33 -0500 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com id ; Wed, 07 Mar 2018 22:06:40 -0800 Received: from HQMAIL105.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Wed, 07 Mar 2018 22:06:32 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Wed, 07 Mar 2018 22:06:32 -0800 Received: from BGMAIL102.nvidia.com (10.25.59.11) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 8 Mar 2018 06:06:31 +0000 Received: from [10.19.64.176] (10.19.64.176) by bgmail102.nvidia.com (10.25.59.11) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 8 Mar 2018 06:06:26 +0000 Subject: Re: [PATCH 05/10] hwmon: generic-pwm-tachometer: Add generic PWM based tachometer To: Guenter Roeck , Rajkumar Rampelli , Mikko Perttunen , , , , , , , , , , , , , , , , , , , , , References: <1519196339-9377-1-git-send-email-rrajk@nvidia.com> <1519196339-9377-6-git-send-email-rrajk@nvidia.com> <5172edff-fe29-7ed1-f0d2-b0359ea2c24d@roeck-us.net> <2510b525-ec36-b49d-5a62-81f335c0d10d@nvidia.com> <2628eff2-dd33-34f4-a7e1-cfe46ef88a3f@nvidia.com> <4556a8d2-947d-72c4-2962-3167afb53978@kapsi.fi> <62ba7f67-5a99-51ab-1214-eb68ebb7e642@roeck-us.net> <952cb50e-d9a0-ae5e-d9f6-d1ce268f0384@nvidia.com> CC: , , , , , , From: Laxman Dewangan Message-ID: <5bffef40-a4a7-5f7d-a448-b2a381c57822@nvidia.com> Date: Thu, 8 Mar 2018 11:36:24 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: X-Originating-IP: [10.19.64.176] X-ClientProxiedBy: BGMAIL103.nvidia.com (10.25.59.12) To bgmail102.nvidia.com (10.25.59.11) Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 07 March 2018 07:50 PM, Guenter Roeck wrote: > On 03/07/2018 01:47 AM, Rajkumar Rampelli wrote: >> >>> >>> While I am not opposed to ABI changes, the merits of those would >>> need to be >>> discussed on the mailing list. But replacing "fan1_input" with "rpm" is >>> not an acceptable ABI change, even if it may measure something that >>> turns >>> but isn't a fan. >>> >>> If this _is_ in fact supposed to be used for something else but >>> fans, we >>> would have to discuss what that might be, and if hwmon is the >>> appropriate >>> subsystem to measure and report it. This does to some degree lead >>> back to >>> my concern of having the "fan" part of this patch series in the pwm >>> core. >>> I am still not sure if that makes sense. >>> >>> Thanks, >>> Guenter >> I am planning to add tachometer support in pwm-fan.c driver >> (drivers/hwmon/) instead of adding new generic-pwm-tachometer.c >> driver. Measuring RPM value will be done in pwm-fan driver itself >> using pwm capture feature and will add new sysfs attributes under >> this driver to report rpm value of fan. > > There is an existing attribute to report the RPM of fans. It is called > fan[1..n]_input. > > "replacing "fan1_input" with "rpm" is not an acceptable ABI change" > > Preemptive NACK. The RPM is measured speed via PWM signal capture which is output from fan. So should we have the fan[1..n]_output_rpm?