• David Brownell's avatar
    davinci: gpio irq enable tweaks · df4aab46
    David Brownell authored
    Fix two IRQ triggering bugs affecting GPIO IRQs:
    
     - Make sure enabling with IRQ_TYPE_NONE ("default, unspecified")
       isn't a NOP ... default to both edges, at least one must work.
    
     - As noted by Kevin Hilman, setting the irq trigger type for a
       banked gpio interrupt shouldn't enable irqs that are disabled.
    
    Since GPIO IRQs haven't been used much yet, it's not clear these
    bugs could have affected anything.  The few current users don't
    seem to have been obviously suffering from these issues.
    Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
    Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
    df4aab46
gpio.c 8.73 KB