Re: PCI Power Management / Interrupt Context

2001-06-27 Thread Jeff Garzik
Linus Torvalds wrote: > > In article <[EMAIL PROTECTED]>, > David T Eger <[EMAIL PROTECTED]> wrote: > > > >So I'm writing some code for a PCI card that is a framebuffer device, and > >happily filling in the functions for the probe() and remove() functions > >when I read documentation (Documentat

Re: PCI Power Management / Interrupt Context

2001-06-27 Thread Linus Torvalds
In article <[EMAIL PROTECTED]>, David T Eger <[EMAIL PROTECTED]> wrote: > >So I'm writing some code for a PCI card that is a framebuffer device, and >happily filling in the functions for the probe() and remove() functions >when I read documentation (Documentation/pci.txt) which mentions that >rem

Re: PCI Power Management / Interrupt Context

2001-06-27 Thread Alan Cox
> if someone yanks the card, how is it going to deliver an interrupt to > the CPU? It can happen actually. There is also a window where you can disable an IRQ on a card and then take an IRQ. The ne2k driver has to jump through a couple of hoops because of this - To unsubscribe from this list: sen

Re: PCI Power Management / Interrupt Context

2001-06-27 Thread Alan Cox
> when I read documentation (Documentation/pci.txt) which mentions that > remove() can be called from interrupt context. This I believe is in fact a documentation error - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More ma

Re: PCI Power Management / Interrupt Context

2001-06-26 Thread Jeff Garzik
David T Eger wrote: > when I read documentation (Documentation/pci.txt) which mentions that > remove() can be called from interrupt context. ignore that. You can sleep in remove, and it will not be called from interrupt context. > Reading code in my sister frame buffer devices, I see that > un

PCI Power Management / Interrupt Context

2001-06-26 Thread David T Eger
So I'm writing some code for a PCI card that is a framebuffer device, and happily filling in the functions for the probe() and remove() functions when I read documentation (Documentation/pci.txt) which mentions that remove() can be called from interrupt context. Now in order to properly tear dow