Re: MFD: mutex from ISR in ezx-pcap?

From: Jiri Slaby
Date: Wed Jul 01 2009 - 02:56:33 EST


On 06/30/2009 10:57 AM, Daniel Ribeiro wrote:
> Em Ter, 2009-06-30 Ãs 00:11 +0200, Jiri Slaby escreveu:
>> so that
>> pcap_adc_irq shouldn't sleep, right? Or maybe I missed something again...
>
> No. Interrupts are enabled again before pcap_adc_irq() runs.
>
> pcap_isr_work() doesn't call pcap_adc_irq directly, it calls the
> irq_flow_handler, handle_simple_irq(), which needs to run with
> interrupts disabled. Interrupts are enabled again on handle_IRQ_event(),
> as pcap_adc_irq is requested _without_ IRQF_DISABLED.

Correct. Thanks for clarification. I posted at least a lock fix which
made me poke in this all.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/