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.

am3354 1G MHz request_irq 7 in Linux cause crash

Other Parts Discussed in Thread: AM3354

Dears

We used am3354 720MHz to use request_irq(7) in Linux, and it woked well.

We change to 1G due to 720MHz phase out, but it doesn't work anymore.

We use the pin B18, NNMI or NMIn of am3354 to detect input power,

and request_irq(7, (irq_handler_t)PowerFailure, IRQF_TRIGGER_NONE, "power failure", NULL);

7 means the NNMI we find it in specification.

We use linux kernel 3.2 from ti-sdk-am335x-evm-05.04.01.00

[ 0.892242] receive power failure from nNMI
[ 0.896697] irq event 7: bogus return value 36
[ 0.901336] Backtrace:
[ 0.903930] [<c00179e8>] (dump_backtrace+0x0/0x110) from [<c0419ad0>] (dump_stack+0x18/0x1c)
[ 0.912719] r6:00000007 r5:c05e5cf4 r4:00000036 r3:c05e38d0
[ 0.918670] [<c0419ab8>] (dump_stack+0x0/0x1c) from [<c00712f4>] (__report_bad_irq.clone.5+0x30/0xbc)
[ 0.928314] [<c00712c4>] (__report_bad_irq.clone.5+0x0/0xbc) from [<c007151c>] (note_interrupt+0x134/0x240)
[ 0.938476] r5:c05e5cc4 r4:00000036