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.