I've got a custom driver, which gets loaded on boot (I compiled a kernel image for it). It uses a number of GPIOs, as defined in the device tree overlay (specifically, the cam gpios of the raspberry, mostly CAM_GPIO aka line 5 of gpiochip1). This shows up if for example I use gpioinfo, and works mostly as expected. So far so good.
Now, for testing I would like to manually set some of thes GPIOs. This does not work, because they're in use. I tried to remove the driver useing modprobe, but this does not work. While the driver is removed, the pins are still blocked.
What is the best way of handling the problem?
Either by removing the driver in such a way that it releases the pins, or by being able to set the value while it's in use. I've looked for similar problems, but couldn't find anything.
The only alternative I see is changing my config.txt for test so the overlay for the driver does not get loaded, and deactivate the camera. However, this would require a restart, which is inconvienint, and I'd also like to understand what is happening here.