Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2484527imu; Thu, 17 Jan 2019 15:18:45 -0800 (PST) X-Google-Smtp-Source: ALg8bN7nthEC9bXTCspB+jrJqDJgrJugQwTp2HjDgHfD4hel8hItSbdAjD6JAedKsTg+UsEF2bXU X-Received: by 2002:a63:3507:: with SMTP id c7mr15261972pga.315.1547767125050; Thu, 17 Jan 2019 15:18:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547767125; cv=none; d=google.com; s=arc-20160816; b=jQ6kl0bqQGQ+rMD4i8OtoyHIwPi/q+YLGD48gz1wb982Fh1XUxhrsSOTYf8aU5FcMS LADPNyI2BgreE56rbngs9n8eTaxv0mLkg+CAkpPhGes1Y0BwcegWzGXOO3DiRAFtMy1X PcX5P5V0HHF0zZXX6KZf9QZv+ye8KNLSQP7gAL+i0k4pguKKabBpv7xVqOzDE7aV0NSr adOWoK9PvcK6MfpIvFBYfTGLpDJP5OcrwPFqhdxi0bmqbhYIy8dhzBNqFn81NNDkye+X ZMb1WTY5m/TsUSnyXniBygIl9na/eTiwLwnXttb0MF+/gag0s+WImNyV/j914MfgiIUs Q8bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Z2Qiq0Ed588WGoXnC05hwrw0bSJ0AT21Dhu9rJ7m6Xo=; b=ZNuASsiy/uUJ0BXpSXIg+7ikket7eLNMumVNy4ShtNVh0hWxe0KyXWiGipkPG8q78A Dn6y+7lx4xYQB9xPfo3zq5MayhE8kDG7MlQ9HIkSbLOcAQ2SNCB1uN2puO8xkMicyZXs 8VoXgryXJ4HpCOuSKoUuIXbcyArqm4OBTjBOBswDRB+X24efJvdRb36d5y/GyAeeUKm5 EweOiEyPz1GMsTXxNPYtODtu0dmvKCB7rLG63hFpNBxT4EJEmlp7Uw8do9iY1PbVwtVS o71XX2u5UtyJWH9EF66x0DCuH4zfc85QuxsFvowqLMv81bEPVwKRCA2BmAJagC1x1szc fDEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sLXvPzaE; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x1si2932255plb.366.2019.01.17.15.18.25; Thu, 17 Jan 2019 15:18:45 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sLXvPzaE; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727127AbfAQXQ3 (ORCPT + 99 others); Thu, 17 Jan 2019 18:16:29 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:41932 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726062AbfAQXQ2 (ORCPT ); Thu, 17 Jan 2019 18:16:28 -0500 Received: by mail-pf1-f194.google.com with SMTP id b7so5563730pfi.8; Thu, 17 Jan 2019 15:16:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Z2Qiq0Ed588WGoXnC05hwrw0bSJ0AT21Dhu9rJ7m6Xo=; b=sLXvPzaEhjKQfTb9+vpI/ouwGnfbEkqvdmUaVSgtOBqBud546z2SBrKkj3ZIB8eCjK qFMWnDu/JRVEKjBqWycfD9d8eOuPQs7nQortz2QdluO5dqCJa07e8Z4CohOLuVa0j4NE 578RA6TS/I0R4vT2sm6OXewIbWN7G0dcQVApEuy8YtgWWsgMV8nfecyKNVj88ERr7Hut HYb+hgjtwsZV/a5p2ih1fTc9j1dMWYzVMaKW++dpoI7XM5SLOpRV7N1FcCyzlf8vuH6W ggfsJPT7FRAfixAXA8JLT6XKWSQfTrctEAKR9MiWRcskqkm5ehLOCRdSgsxIFsVyKYBJ YwAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Z2Qiq0Ed588WGoXnC05hwrw0bSJ0AT21Dhu9rJ7m6Xo=; b=caaOEqOwRb7WDIcmKlxZ+k2OnNCmpJ7IUs9kVdUXR2taAm45lhqn7CLOeixUgdT844 G0E0cR0ulinUuCjHDHvwuVfQNhZ+wxk/2bdYP9GI+Y/BjqPat4DEODtGE/ogS3+4c6uq ExTs+p8TvaWFnJBzQQS6uuZjV1eTBICQ9VohoVoTZIewSHPuibf0CWpIAnmAaEG5MRmI MAaAPakhtJjvb62YRsZetk0sSZY8UdXqhQ0U85QgndmcwLlws+fin5zP2AomViFn0Eyq C1TNqFSb+m/JY3adh4VtFBko9uY9NOj9O2vVdpUK8DdU4/wXrLpUTG37I0VfoFXQxTQh IoLA== X-Gm-Message-State: AJcUukdDK16XBt7OjqBkGKP4O6mOlATPqyiX1eMSUi8JNcJfnIUUxYJg pI5AkCYAeEjji3GNAoGj5Uc= X-Received: by 2002:a63:fe0a:: with SMTP id p10mr15142445pgh.265.1547766987223; Thu, 17 Jan 2019 15:16:27 -0800 (PST) Received: from Asurada-Nvidia.nvidia.com (thunderhill.nvidia.com. [216.228.112.22]) by smtp.gmail.com with ESMTPSA id y6sm5685597pfd.104.2019.01.17.15.16.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Jan 2019 15:16:27 -0800 (PST) Date: Thu, 17 Jan 2019 15:16:22 -0800 From: Nicolin Chen To: Guenter Roeck Cc: =?iso-8859-1?B?QnL8bnMs?= Stefan , "jdelvare@suse.com" , "linux-hwmon@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "corbet@lwn.net" , "linux-doc@vger.kernel.org" Subject: Re: [RFC][PATCH] hwmon: (ina2xx) Improve current and power reading precision Message-ID: <20190117231622.GA9310@Asurada-Nvidia.nvidia.com> References: <20181121012629.5432-1-nicoleotsuka@gmail.com> <2863036.QIPGp1Eqjm@sbruens-linux.lcs.intern> <20181121194051.GA8902@Asurada-Nvidia.nvidia.com> <1717545.GXSegKtrMu@sbruens-linux.lcs.intern> <20190105012642.GA18025@Asurada-Nvidia.nvidia.com> <20190117223828.GI16918@Asurada-Nvidia.nvidia.com> <20190117231323.GB23511@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190117231323.GB23511@roeck-us.net> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Guenter, On Thu, Jan 17, 2019 at 03:13:23PM -0800, Guenter Roeck wrote: > I have one claim stating that your change won't make a difference, > and your claim that it would. That leaves me with no choice but to > spend a large amount of time with the datasheet, and possibly with > my evaluation boards, trying to find out who is correct. Unfortunately, > time is scarce to come by those days. I would very much prefer for > you folks to sort out your differences and present me with a single > opinion. > > Long term the best solution would really be to replace the hwmon > driver with the iio driver and use the iio-hwmon bridge. The ina2xx > driver doesn't support limits, so there is no real benefit of using > the hwmon driver over the iio driver, at least assuming that the > iio driver supports all the attributes. So maybe you should make your > case for the changes in the iio driver. Thanks for the input. Let's drop this hwmon change then.