INTC issue

Yoshihiro Shimoda
2009-02-05T12:04:52Z

Hi,

I found INTC issue. For example, an interrupt is prohibited when I handle it as follows.

1) Driver A call request_irq of DMAC ch0
2) Driver B call request_irq of DMAC ch1.
3) Driver A call free_irq of DMAC ch0.
4) Driver B use DMAC ch1, but DMAC ch1 interrupt disabled.

The interrupt mask register of SH7785 is INT2MSKR.
The bit 11 of INT2MSKR is DMAC channels 0 to 5 interrupts mask bit.

I think that it is necessary to count the number of times admitted
an interrupt to solve this problem. I think that intc have a counter
every interrupt bit for a simple implementation method, but there
is much waste.

Any ideas?