Linux Hardware Monitor development
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Davide Hug <d@videhug.ch>
Cc: Linus Walleij <linus.walleij@linaro.org>,
	Jean Delvare <jdelvare@suse.com>,
	Guenter Roeck <linux@roeck-us.net>,
	linux-hwmon@vger.kernel.org, arm@kernel.org,
	Marco Franchi <marco.franchi@nxp.com>,
	Jonathan Cameron <jic23@cam.ac.uk>
Subject: Re: [PATCH v2] hwmon/sht15: Root out platform data
Date: Sun, 10 Sep 2017 17:23:49 +0100	[thread overview]
Message-ID: <20170910172349.41659340@archlinux> (raw)
In-Reply-To: <20170910160528.81ac76b96943ff262a61434a@videhug.ch>

On Sun, 10 Sep 2017 16:05:28 +0200
Davide Hug <d@videhug.ch> wrote:

> On Sun, 10 Sep 2017 11:44:46 +0200
> Linus Walleij <linus.walleij@linaro.org> wrote:
> 
> > After finding out there are active users of this sensor I noticed:  
> 
> I would like to point out that I'm doing this for learning purposes and that I
> don't have any pressing needs for this driver to work. But of course I'm really
> grateful for all the replays!
> 

I can't claim I ever had any real use for this part either.  It was
just looking at me from a dev board and asking for me to mainline
the driver :)

> > Cc: arm@kernel.org
> > Cc: Marco Franchi <marco.franchi@nxp.com>
> > Cc: Davide Hug <d@videhug.ch>
> > Cc: Jonathan Cameron <jic23@cam.ac.uk>
> > Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> > ---
> > ChangeLog v1->v2:
> > - Fix the return value from devm_gpiod_get() with PTR_ERR()
> >   so we defer etc correctly.
> > 
> > ARM SoC folks: please ACK this so the HWMON maintainer can merge
> > it when it is in reasonable shape.
> > 
> > Marco: can you test this patch with your setup?
> > 
> > Davide: can you test this patch with your setup?  
> 
> I tested it and I can make it work (as the current driver) by modifying gpiolib
> to not test for the FLAG_USED_AS_IRQ in _gpiod_direction_output_raw.
> Otherwise again I get:
> 
> 	gpio-48 (SHT15 data): _gpiod_direction_output_raw: tried to set a GPIO tied to an IRQ as output
> 
> as with the current driver. But I guess this is as expected.
> (I did this on a beaglebone black with kernel 4.9.10. I'll compile a newer
> kernel and try it there to.)

Cool.

> 
> Thanks!

Thanks to you.  It's always nice when people fix issues with / update a
driver you've ignored for perhaps 8 years ;)

As you know this particular part has a truely horrendous custom bus.
I'm always amazed these old sensiron parts work at all.

I'm also really surprised to see they are still readily available.

Jonathan

> Davide


  reply	other threads:[~2017-09-10 16:23 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-10  9:44 [PATCH v2] hwmon/sht15: Root out platform data Linus Walleij
2017-09-10 13:17 ` Arnd Bergmann
2017-09-10 14:05 ` Davide Hug
2017-09-10 16:23   ` Jonathan Cameron [this message]
2017-11-20 23:18     ` Davide Hug
2017-09-10 15:48 ` Jonathan Cameron
     [not found] ` <CAOMZO5D_m=4UKBBGb0-jurDib+g+v82ATMHbiRGhvTSsfz1P6w@mail.gmail.com>
     [not found]   ` <CAM4PwSWtxU+87HxP7k3-4qgt4E_q3cS5EZoKjNP7_rh43XJJhg@mail.gmail.com>
     [not found]     ` <HE1PR0402MB3562DEEDDCA16F6B8E04CA2FF6680@HE1PR0402MB3562.eurprd04.prod.outlook.com>
2017-09-11 17:35       ` Marco Franchi
2017-11-20 23:28         ` Davide Hug
2017-11-21 15:49           ` Marco Franchi
2017-11-22 22:45             ` Davide Hug
2017-11-22 22:53               ` Fabio Estevam
2017-11-25  0:03                 ` Davide Hug
2017-11-25  2:06                   ` Fabio Estevam
2017-11-25  9:41                     ` Davide Hug
2017-11-25  9:48                       ` Davide Hug
2017-11-25 14:04                       ` Fabio Estevam
2017-11-26 22:38                         ` Davide Hug
2017-11-26 22:59                           ` Fabio Estevam
2017-09-12  3:48 ` Guenter Roeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170910172349.41659340@archlinux \
    --to=jic23@kernel.org \
    --cc=arm@kernel.org \
    --cc=d@videhug.ch \
    --cc=jdelvare@suse.com \
    --cc=jic23@cam.ac.uk \
    --cc=linus.walleij@linaro.org \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=marco.franchi@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox