Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1376157
| Path | csiph.com!goblin2!goblin.stu.neva.ru!gothmog.csi.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Guenter Roeck <linux@roeck-us.net> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/1] iio: adc: Add driver for the TI INA3221 Triple Current/Voltage Monitor |
| Date | Mon, 11 Apr 2016 18:40:02 +0200 |
| Message-ID | <rmN2y-py-11@gated-at.bofh.it> (permalink) |
| References | <rlJkm-82k-35@gated-at.bofh.it> <rmmc2-4mw-15@gated-at.bofh.it> <rmMga-8aY-9@gated-at.bofh.it> |
| X-Original-To | "Andrew F. Davis" <afd@ti.com> |
| Dkim-Signature | v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=roeck-us.net; s=default; h=In-Reply-To:Content-Type:MIME-Version:References :Message-ID:Subject:Cc:To:From:Date; bh=GkwKb94k280eV+chLNtglqjj9dA35YCAA1B0/YFCliY=; b=S4Rg5yar7ytoxbR9c3OBKQivmf kyNmSaTYEXe6R+GvD6WjJcdTERFfga13XjvHuTZqKP5QiHCP7IAJRjMs2kGbFme11WCja1xrdLnQJ mRvyCvbzpUk8lQCXJTXmX3PYO2WQZQFY9vDhPT+x05uClMvKm5hX3bjH818+78HTNoUJ3WvhuYxkG xwyqz00GxOYJeylk22UdnNMTAscbjfSHsMDyvn7RN4S3Xhutv5qCpGKsKLk1AzUy3u/C/7ytcsAax uT+1p7yp6YOs3FQRZ52gnDR2FD+m8xgfWB0oxS0bQnevL0QRPMuUXafnEw8kd9JTWFjaiNwGRg9E3 S82eJxuQ==; |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | Mutt/1.5.23 (2014-03-12) |
| X-Authenticated_Sender | guenter@roeck-us.net |
| X-Outgoing-Spam-Status | No, score=-1.0 |
| X-Antiabuse | This header was added to track abuse, please include it with any abuse report |
| X-Antiabuse | Primary Hostname - bh-25.webhostbox.net |
| X-Antiabuse | Original Domain - vger.kernel.org |
| X-Antiabuse | Originator/Caller UID/GID - [47 12] / [47 12] |
| X-Antiabuse | Sender Address Domain - roeck-us.net |
| X-Get-Message-Sender-Via | bh-25.webhostbox.net: authenticated_id: guenter@roeck-us.net |
| X-Authenticated-Sender | bh-25.webhostbox.net: guenter@roeck-us.net |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 42 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Jonathan Cameron <jic23@kernel.org>, Hartmut Knaack <knaack.h@gmx.de>, Lars-Peter Clausen <lars@metafoo.de>, Peter Meerwald <pmeerw@pmeerw.net>, Marc Titinger <mtitinger@baylibre.com>, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Jean Delvare <jdelvare@suse.de>, linux-hwmon@vger.kernel.org |
| X-Original-Date | Mon, 11 Apr 2016 09:38:43 -0700 |
| X-Original-Message-ID | <20160411163843.GA27218@roeck-us.net> |
| X-Original-References | <1460139580-11865-1-git-send-email-afd@ti.com> <570A3FB2.7000600@kernel.org> <570BC74B.3000208@ti.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1376157 |
Show key headers only | View raw
On Mon, Apr 11, 2016 at 10:48:27AM -0500, Andrew F. Davis wrote: > On 04/10/2016 06:57 AM, Jonathan Cameron wrote: > > On 08/04/16 19:19, Andrew F. Davis wrote: > >> The INA3221 is a three-channel, high-side current and bus voltage monitor > >> with an I2C and SMBUS compatible interface. > >> > >> Signed-off-by: Andrew F. Davis <afd@ti.com> > > Hi Andrew, > > > > My immediate thought on this one is whether it would be better off in hwmon. > > I'm not convinced either way from a quick glance at the data sheet, but the > > question needs to be addressed. > > > > I was on the fence with this also, I was leaning towards hwmod until I > looked onto how the ina2xx driver has been ported to iio. This is almost > the same part but the ina3x has three monitors vs one. In addition it > looks like NVIDIA has written a hwmod driver for this part > (https://github.com/Bogdacutu/STLinux-Kernel/blob/master/drivers/hwmon/ina3221.c) > but then also ported it over to IIO (although doesn't appear to be > upstream ready or ever has been submitted for such) > (https://github.com/SuperPichu/shield-tablet-kernel/blob/master/drivers/staging/iio/meter/ina3221.c) > So I figured this was the way things are moving, but I have no problem > working this as a hwmod driver. The IIO work is already done here, I'll > write the hwmod version also but keep working this, I see no reason we > cant have both if needed. (unless using this and just using iio_hwmod.c > if needed is more acceptable?) > You can not have both since they would conflict with each other. ina2xx has possibly created a bad precedent. I am not inclined to accept a hwmon driver if an iio driver already exists. If you want an iio driver, fine with me, but then you (and its users) will have to live with its limitations when it comes to hardware monitoring. I don't really mind if things are going all towards iio if that is where the community wants to go. However, if that is the case, I would suggest that someone should spend the time to define a clear sense of 'limits' as well as alert handling in iio, in a way that is exportable to other subsystems (hwmon and thermal come into mind). Guenter
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/1] iio: adc: Add driver for the TI INA3221 Triple Current/Voltage Monitor "Andrew F. Davis" <afd@ti.com> - 2016-04-08 20:30 +0200
Re: [PATCH 1/1] iio: adc: Add driver for the TI INA3221 Triple Current/Voltage Monitor Jonathan Cameron <jic23@kernel.org> - 2016-04-10 14:00 +0200
Re: [PATCH 1/1] iio: adc: Add driver for the TI INA3221 Triple Current/Voltage Monitor Guenter Roeck <linux@roeck-us.net> - 2016-04-10 17:20 +0200
Re: [PATCH 1/1] iio: adc: Add driver for the TI INA3221 Triple Current/Voltage Monitor "Andrew F. Davis" <afd@ti.com> - 2016-04-11 18:10 +0200
Re: [PATCH 1/1] iio: adc: Add driver for the TI INA3221 Triple Current/Voltage Monitor Guenter Roeck <linux@roeck-us.net> - 2016-04-11 18:30 +0200
Re: [PATCH 1/1] iio: adc: Add driver for the TI INA3221 Triple Current/Voltage Monitor "Andrew F. Davis" <afd@ti.com> - 2016-04-11 17:50 +0200
Re: [PATCH 1/1] iio: adc: Add driver for the TI INA3221 Triple Current/Voltage Monitor Guenter Roeck <linux@roeck-us.net> - 2016-04-11 18:40 +0200
Re: [PATCH 1/1] iio: adc: Add driver for the TI INA3221 Triple Current/Voltage Monitor "Andrew F. Davis" <afd@ti.com> - 2016-04-11 18:50 +0200
Re: [PATCH 1/1] iio: adc: Add driver for the TI INA3221 Triple Current/Voltage Monitor Guenter Roeck <linux@roeck-us.net> - 2016-04-11 20:10 +0200
Re: [PATCH 1/1] iio: adc: Add driver for the TI INA3221 Triple Current/Voltage Monitor jic23@jic23.retrosnub.co.uk - 2016-04-12 10:40 +0200
Re: [PATCH 1/1] iio: adc: Add driver for the TI INA3221 Triple Current/Voltage Monitor jic23@jic23.retrosnub.co.uk - 2016-04-12 11:00 +0200
Re: [PATCH 1/1] iio: adc: Add driver for the TI INA3221 Triple Current/Voltage Monitor jic23@jic23.retrosnub.co.uk - 2016-04-12 10:40 +0200
Re: [PATCH 1/1] iio: adc: Add driver for the TI INA3221 Triple Current/Voltage Monitor "Andrew F. Davis" <afd@ti.com> - 2016-04-12 18:00 +0200
csiph-web