Skip to contentSkip to conversation

Dht11 driver problem

DISCUSSION Varka Bhadram 3 participants 3 messages Dec 19, 2014 IIO

lore
Share & tools
lore
#0 lore raw

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..?

Signature · 15 lines
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.
-------------------------------------------------------------------------------------------------------------------------------
#1 lore raw

Hi Varka,

Quoted 6 lines · Varka Bhadram

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/[email protected]/msg783710.html
for details.

Quoted 1 line

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

maintainer
#2 lore raw
Quoted 11 lines · Harald Geyer

Hi Varka,

Quoted 6 lines · Varka Bhadram

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..?

Quoted 9 lines

Richard Weinberger is working on a patch series to work around this. See
https://www.mail-archive.com/[email protected]/msg783710.html
for details.

Quoted 1 line

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

Quoted 5 lines

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

Signature · 1 line
Sent from my Android phone with K-9 Mail. Please excuse my brevity.