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

Last change on this file since 29237 was 29237, checked in by mb, 4 years ago

omap24xx: Fix cbus nested IRQ acking

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

    old new static int __devinit retu_probe(struct p 
    451451                        (rev >> 4) & 0x07, rev & 0x0f); 
    452452 
    453453        /* Mask all RETU interrupts */ 
    454         __retu_write_reg(retu, RETU_REG_IMR, 0xffff); 
     454        retu->mask = 0xFFFF; 
     455        __retu_write_reg(retu, RETU_REG_IMR, retu->mask); 
    455456 
    456457        ret = request_threaded_irq(retu->irq, NULL, retu_irq_handler, 
    457458                        IRQF_ONESHOT, "retu", retu); 
  • drivers/cbus/tahvo.c

    old new static int __devinit tahvo_probe(struct 
    346346                        (rev >> 4) & 0x0f, rev & 0x0f); 
    347347 
    348348        /* Mask all TAHVO interrupts */ 
    349         __tahvo_write_reg(tahvo, TAHVO_REG_IMR, 0xffff); 
     349        tahvo->mask = 0xFFFF; 
     350        __tahvo_write_reg(tahvo, TAHVO_REG_IMR, tahvo->mask); 
    350351 
    351352        ret = request_threaded_irq(irq, NULL, tahvo_irq_handler, 
    352353                        IRQF_TRIGGER_RISING | IRQF_ONESHOT, 
Note: See TracBrowser for help on using the repository browser.