On Sat, 25 Nov 2017 10:41:26 +0100
Davide Hug <[email protected]> wrote:

> Hi Estevam

Hi Fabio,

sorry for that.

> 
> On Sat, 25 Nov 2017 00:06:44 -0200
> Fabio Estevam <[email protected]> wrote:
> 
> > Hi Davide,
> > 
> > On Fri, Nov 24, 2017 at 10:03 PM, Davide Hug <[email protected]> wrote:
> > 
> > > So the GPIOLIB_IRQCHIP code in gpiolib.c is enabled. But the driver
> > > gpio-mxc doesn't use it. In particular it doesn't call 
> > > gpiochip_add_irqchip
> > > which assigns the .irq_request_resources/.irq_release_resources callbacks 
> > > that
> > > toggle the FLAG_USED_AS_IRQ.
> > > So in the gpio-mxc driver the guard against setting a GPIO with active 
> > > IRQ as
> > > output is not in place. And it is this guard that makes the sht15 driver 
> > > fail
> > > to load when in place.
> > 
> > What is the gpio driver you are using that shows the error?
> 
> The following two drivers:
> 
>   - gpio/gpio-omap (on the beaglebone black)
>   - pinctrl/bcm/pinctrl-bcm2835 (on the raspberry pi 2).
> 
> Where pinctrl-bcm2835 has to include commit
> 85ae9e512f437cd09bf61564bdba29ab88bab3e3 where the driver was converted to
> using the GPIOLIB_IRQCHIP helper library.
> 
> Regards
> Davide
> --
> To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to