source: trunk/target/linux/omap24xx/patches-3.1/254-cbus-retu-tahvo-irq-mask-init-fix.patch @ 29236

Last change on this file since 29236 was 29236, checked in by mb, 5 years ago

omap24xx: Fix initialization of software IRQ mask

File size: 1.2 KB
  • drivers/cbus/retu.c

    old new static int __devinit retu_probe(struct p 
    466466                        (rev >> 4) & 0x07, rev & 0x0f); 
    467467 
    468468        /* Mask all RETU interrupts */ 
    469         __retu_write_reg(retu, RETU_REG_IMR, 0xffff); 
     469        retu->mask = 0xFFFF; 
     470        __retu_write_reg(retu, RETU_REG_IMR, retu->mask); 
    470471 
    471472        ret = request_threaded_irq(retu->irq, NULL, retu_irq_handler, 
    472473                        IRQF_ONESHOT, "retu", retu); 
  • drivers/cbus/tahvo.c

    old new static int __devinit tahvo_probe(struct 
    361361                        (rev >> 4) & 0x0f, rev & 0x0f); 
    362362 
    363363        /* Mask all TAHVO interrupts */ 
    364         __tahvo_write_reg(tahvo, TAHVO_REG_IMR, 0xffff); 
     364        tahvo->mask = 0xFFFF; 
     365        __tahvo_write_reg(tahvo, TAHVO_REG_IMR, tahvo->mask); 
    365366 
    366367        ret = request_threaded_irq(irq, NULL, tahvo_irq_handler, 
    367368                        IRQF_TRIGGER_RISING | IRQF_ONESHOT, 
Note: See TracBrowser for help on using the repository browser.