public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
* INTC issue
@ 2009-02-05 12:04 Yoshihiro Shimoda
  2009-02-10  8:13 ` Magnus Damm
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Yoshihiro Shimoda @ 2009-02-05 12:04 UTC (permalink / raw)
  To: linux-sh

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?

Thanks,
Yoshihiro Shimoda

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-02-25  4:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-05 12:04 INTC issue Yoshihiro Shimoda
2009-02-10  8:13 ` Magnus Damm
2009-02-10 10:28 ` Yoshihiro Shimoda
2009-02-12 12:09 ` Magnus Damm
2009-02-17  6:21 ` Yoshihiro Shimoda
2009-02-24 14:12 ` Magnus Damm
2009-02-25  4:11 ` Yoshihiro Shimoda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox