This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

linux下adc驱动问题



环境:linux下使用TI技术支持的adc驱动,

跟踪到代码每次 跑到adc_readl(adc_dev, TSCADC_REG_IRQSTATUS);崩溃;

##############

问题:

初始化完后执行adc_readl()程序就肯定出错,这是什么原因?

求解??????

################ 

Disabling lock debugging due to kernel taint
start probe....
adc_probe adc_major 250
irq ID is : 115
ADC channel choose: 4
testing..........########
Unhandled fault: external abort on non-linefetch (0x1028) at 0xf9e0d028
Internal error: : 1028 [#1]
Modules linked in: ti_adc_driver(O+)
CPU: 0 Tainted: G O (3.2.0 #30)
PC is at adc_probe+0x49c/0x550 [ti_adc_driver]
LR is at console_unlock+0x190/0x210
pc : [<bf000868>] lr : [<c00428d8>] psr: 20000013
sp : cf5d7d68 ip : 000036a0 fp : cf5d7d9c
r10: 0000001c r9 : 000004a2 r8 : cf4120c0
r7 : cf751ec0 r6 : 00000000 r5 : c072b7f0 r4 : bf000ec0
r3 : f9e0d000 r2 : 00000001 r1 : cf4120c0 r0 : 0000001d
Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: 10c5387d Table: 8e448019 DAC: 00000015
Process insmod (pid: 3077, stack limit = 0xcf5d62f0)
Stack: (0xcf5d7d68 to 0xcf5d8000)