gpio_to_irq(25) = -6
While following this thread to add a MCP2515 (CAN driver on SPI bus) on an Up Xtreme, the driver proposed by @nukular works to register the SPI device but the
gpio_to_irq() always returns
-6 so the SPI driver is not happy with it.
We have tried several GPIO numbers, from 1 to 26 but all are returning
This same driver was working on an UpBoard.
We are currently running the 5.0 kernel from Up ppa has explained in the wiki.
Did anyone have success on using irq on pins from the 40-pin Raspberry Pi style connector?
I have tried to follow the kernel source code but I am not enough familiar with it so if anyone could point me to the right files, it would be nice too.