• Eugene Surovegin's avatar
    [PATCH] ppc32: ppc4xx_pic - add acknowledge when enabling level-sensitive IRQ · 35b535d9
    Eugene Surovegin authored
    This patch adds interrupt acknowledge to the PPC4xx PIC enable_irq
    implementation for level-sensitive IRQ sources.  This helps in cases when
    enable/disable_irq is used in interrupt handlers for hardware, which
    requires IRQ acknowledge to be issued from non-interrupt context (e.g. 
    when actual ACK in device needs an I2C transaction).  For such strange
    hardware, interrupt handler disables IRQ and defers actual ACK to some
    other context.  When this happens, IRQ is enabled again.  For
    level-sensitive sources we get spurious triggering right after IRQ is
    enabled.  This patch fixes this.
    
    Suggested by Tolunay Orkun <listmember@orkun.us>.
    Signed-off-by: default avatarEugene Surovegin <ebs@ebshome.net>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    35b535d9
ppc4xx_pic.c 6.51 KB