LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   insmod a module error: not permitting (https://www.linuxquestions.org/questions/linux-kernel-70/insmod-a-module-error-not-permitting-4175451049/)

chenzf070720 02-21-2013 12:04 AM

insmod a module error: not permitting
 
Hi:
I'm practicing a GPIOs driver modeule,which hardware base on TI's OMAP-L138.Refer to its datasheet,the GPIO's id is range from 42 to 50.And while I call function request_irq(GPIO_IRD_ID,...),where GPIO_IRD_ID is one of 42 to 50,and it goes an error!
The error information is not permitting! And I check the system irq status:
root@bfdx:/# cat proc/interrupts
CPU0
11: 2 cp_intc edma
12: 0 cp_intc edma_error
15: 21974 cp_intc OMAPL-I2C-IRQ
16: 0 cp_intc mmc0
19: 0 cp_intc rtc0
21: 93578 cp_intc clockevent
22: 47 cp_intc free-run counter
25: 0 cp_intc serial
33: 0 cp_intc eth0
34: 111567 cp_intc eth0
35: 9839 cp_intc eth0
36: 0 cp_intc eth0
52: 441181 cp_intc da8xx_lcdc
53: 34 cp_intc serial
56: 190 cp_intc spi_davinci.1
58: 1 cp_intc musb-hdrc
59: 2 cp_intc ohci_hcd:usb2
61: 4457 cp_intc serial
67: 0 cp_intc ahci
72: 20 cp_intc mmc1
93: 0 cp_intc edma
94: 0 cp_intc edma_error
99: 0 cp_intc McBSP_rx
100: 0 cp_intc McBSP
210: 0 GPIO OHCI over-current indicator
Err: 0
However,when i change the irq's id to 54,then it goes well.
How to deal this probome!thanks!

bsat 02-22-2013 12:21 AM

What exactly is the error message ?
if 54 is working why not use that itself ?

chenzf070720 03-04-2013 11:06 PM

error information is not permitting,and return value is -22.thanks!


All times are GMT -5. The time now is 08:04 AM.