All of lore.kernel.org
 help / color / mirror / Atom feed
* Dht11 driver problem
@ 2014-12-19  5:49 Varka Bhadram
  2014-12-19 12:35 ` Harald Geyer
  0 siblings, 1 reply; 3+ messages in thread
From: Varka Bhadram @ 2014-12-19  5:49 UTC (permalink / raw)
  To: harald; +Cc: linux-iio - ML

Hi,


I loaded the DHT11 driver with current linus tree on my BeagleBone black, Interfaced DHT11.

While reading the DHT11 data from sys file system, its failing.

dmesg:  gpio-30 (humidity_sensor): _gpiod_direction_output_raw: tried to set a GPIO tied to an IRQ as output

Its failing because in probe function we register gpio as irq and after that while read raw making same pin as output.

Is there any updated patches to avoid this problem..?

One more thing is that this driver is not available in IIO git tree.

Any help..?

-- 
Regards,
Varka Bhadram.


-------------------------------------------------------------------------------------------------------------------------------
[ C-DAC is on Social-Media too. Kindly follow us at:
Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]

This e-mail is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. If you are not the
intended recipient, please contact the sender by reply e-mail and destroy
all copies and the original message. Any unauthorized review, use,
disclosure, dissemination, forwarding, printing or copying of this email
is strictly prohibited and appropriate legal action will be taken.
-------------------------------------------------------------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Dht11 driver problem
  2014-12-19  5:49 Dht11 driver problem Varka Bhadram
@ 2014-12-19 12:35 ` Harald Geyer
  2014-12-19 17:15   ` Jonathan Cameron
  0 siblings, 1 reply; 3+ messages in thread
From: Harald Geyer @ 2014-12-19 12:35 UTC (permalink / raw)
  To: Varka Bhadram; +Cc: linux-iio - ML, Richard Weinberger

Hi Varka,

Varka Bhadram writes:

> While reading the DHT11 data from sys file system, its failing.
> 
> Its failing because in probe function we register gpio as irq and
> after that while read raw making same pin as output.
> 
> Is there any updated patches to avoid this problem..?

Richard Weinberger is working on a patch series to work around this.
See https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg783710.html
for details.
 
> One more thing is that this driver is not available in IIO git tree.

I don't know what you are refering to here.

Harald

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Dht11 driver problem
  2014-12-19 12:35 ` Harald Geyer
@ 2014-12-19 17:15   ` Jonathan Cameron
  0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Cameron @ 2014-12-19 17:15 UTC (permalink / raw)
  To: Harald Geyer, Varka Bhadram; +Cc: linux-iio - ML, Richard Weinberger



On December 19, 2014 12:35:30 PM GMT+00:00, Harald Geyer <harald@ccbib.org> wrote:
>Hi Varka,
>
>Varka Bhadram writes:
>
>> While reading the DHT11 data from sys file system, its failing.
>> 
>> Its failing because in probe function we register gpio as irq and
>> after that while read raw making same pin as output.
>> 
>> Is there any updated patches to avoid this problem..?
>
>Richard Weinberger is working on a patch series to work around this.
>See
>https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg783710.html
>for details.
> 
>> One more thing is that this driver is not available in IIO git tree.
>
>I don't know what you are refering to here.
>
Master branch is hardly ever used. Try togreg branch for the latest. Not cgit makes it
 harder than it should be to browse particular branches so you may not be
 looking at what you think you are! It has gotten me a few times...

Jonathan
>Harald
>--
>To unsubscribe from this list: send the line "unsubscribe linux-iio" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-12-19 17:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-19  5:49 Dht11 driver problem Varka Bhadram
2014-12-19 12:35 ` Harald Geyer
2014-12-19 17:15   ` Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.