Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4151

Device Tree • EPROBE_DEFER error when accessing GPIO

$
0
0
Hi,

I am trying to develop a kernel driver for a MAX3140 UART/RS485 transceiver.

I have been successful in using SPI0 to communicate to the chip, however when I try to configure an interrupt I am having errors.

Inside my module init function I have the following:

Code:

ret = gpio_request(17, "my-irq-pin")
The return from this is an EPROBE_DEFER error code.

I am loading the module manually, much later than the startup of the system, so I am confused why the GPIO device would not be ready.

Is it a requirement to configure the interrupts in the device tree overlay?

Statistics: Posted by greg.vandermerwe — Tue Mar 26, 2024 6:41 am



Viewing all articles
Browse latest Browse all 4151

Trending Articles