HP Jornada 6xx PCMCIA driver

Dominik Brodowski linux at dominikbrodowski.net
Mon Nov 19 17:25:47 EST 2007


Hi,

On Mon, Nov 19, 2007 at 08:49:12PM +0100, Kristoffer Ericson wrote:
> On Mon, 19 Nov 2007 09:49:41 +0100
> Dominik Brodowski <linux at dominikbrodowski.net> wrote:
> 
> > Hi,
> > 
> > On Mon, Nov 19, 2007 at 01:19:00AM -0800, Kristoffer Ericson wrote:
> > > > Actually, why do you bother? The PCMCIA subsystem is capable of working with
> > > > shared IRQs...
> > > > 
> > > So I should have same interrupt for both? Isn't it important to know
> > > where the IRQ came from? Thats what puzzles me.
> > 
> > Well, each IRQ handler needs to check whether it is indeed the one which was
> > called. So, inside hd6441_interrupt() you'd need to do the following
> > 
> > 	cscr = inb(cscr_reg);
> > 	if !(cscr & HD64461_PCCCSCR_IRQ)
> > 		return IRQ_NONE;
> > 
> > to avoid handling ("IRQ_HANDLED") an interrupt which wasn't caused by this
> > device.
> >
> Oki, sounds logical. But do I need to setup io_irq "IRQ's" or does PCMCIA code register one for me? From what I've read so far
> I believe I need to register the "slot IRQ" and handler, while pcmcia setups the pcmcia_card handler. Correct?

Correct.


	Dominik



More information about the linux-pcmcia mailing list