Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
I'm writing a kernel module for driving a sensor. When I try to request a GPIO that is present on /sys/class/gpio the module doesn't fail,
but it also is not set, when I try to write to it.
When I try a GPIO that is not present on /sys/class/gpio the gpio_request fails.
Do I need to do anything before trying to request a GPIO?
> gpio_request() should be enough.
> Which gpio pins are you trying?
gpio 146 and 147. Now I see that the problem is not with the gpio_request itself, but with the rest of my char device...
I tried a simple module that just toggles that same gpios and had no problem.