[lkml]   [2011]   [Jun]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectWhy does handle_simple_irq() require IRQ's to be disabled?


    I am trying to implement/fix interrupt controller functionality in
    gpio/pca953x.c, and for some reason which I don't understand, I need to disable
    interrupts with local_irq_disable() before calling generic_handle_irq(). This
    does not seem right.
    If I follow the code of handle_simple_irq(), the handler function setup for
    this IRQ, I get to handle_irq_event_percpu(), which has a
    This WARN is triggered, since nobody explicitly disables interrupts. Why?

    generic_hanlde_irq() is called from a threaded interrupt handler of the parent
    of this interrupt controller, and calling local_irq_disable() here seems like
    a crime. What am I doing wrong?

    Best regards,

    David Jander
    Protonic Holland.

     \ /
      Last update: 2011-06-06 17:49    [W:0.019 / U:48.112 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site