Skip to contentSkip to conversation

So, is there support for IDE devices that have no IRQ?

DISCUSSION Marc Singer 3 participants 6 messages Mar 24, 2004 – Mar 25, 2004 libata

lore
Share & tools
lore
#0 lore raw

I'm getting the impression that there isn't. I've got a system with compact flash and no interrupt line to the device. Setting the hwif->irq value to -1 causes the kernel to crash, though there is a IDE_NO_IRQ constant. I'm good to make this work, but I want to make sure that I'm heading in a reasonable direction.

The thing that's confusing me is that I'm not getting an ide0 device even though I can see the code probing for drives.

Cheers.

#1 lore raw

Probing code uses polling but actual NODATA/PIO/DMA handlers require IRQ so it needs much effort to make it work.

Cheers,
Bartlomiej

Quoted 10 lines · Marc Singer

I'm getting the impression that there isn't. I've got a system with compact flash and no interrupt line to the device. Setting the hwif->irq value to -1 causes the kernel to crash, though there is a IDE_NO_IRQ constant. I'm good to make this work, but I want to make sure that I'm heading in a reasonable direction.

The thing that's confusing me is that I'm not getting an ide0 device even though I can see the code probing for drives.

Cheers.

#2 lore raw
Quoted 3 lines · Bartlomiej Zolnierkiewicz

Probing code uses polling but actual NODATA/PIO/DMA handlers require IRQ so it needs much effort to make it work.

Well, I'm thinking that I can emulate the irq by using a timer. A bad hack, but it ought to work as long as I can get the timing correct. This is for a compact flash interface.

#3 lore raw
Quoted 7 lines · Marc Singer
Quoted 2 lines · Bartlomiej Zolnierkiewicz

Probing code uses polling but actual NODATA/PIO/DMA handlers require IRQ so it needs much effort to make it work.

Well, I'm thinking that I can emulate the irq by using a timer. A bad hack, but it ought to work as long as I can get the timing correct. This is for a compact flash interface.

Sigh, proper fix is to convert NODATA/PIO handlers to use polling.

#4 lore raw
Quoted 10 lines · Bartlomiej Zolnierkiewicz
Quoted 7 lines · Marc Singer
Quoted 2 lines · Bartlomiej Zolnierkiewicz

Probing code uses polling but actual NODATA/PIO/DMA handlers require IRQ so it needs much effort to make it work.

Well, I'm thinking that I can emulate the irq by using a timer. A bad hack, but it ought to work as long as I can get the timing correct. This is for a compact flash interface.

Sigh, proper fix is to convert NODATA/PIO handlers to use polling.

Of course, I'd rather do that. 8-)

#5 lore raw
In reply to Marc Singer
Quoted 8 lines · Marc Singer
Quoted 3 lines · Bartlomiej Zolnierkiewicz

Probing code uses polling but actual NODATA/PIO/DMA handlers require IRQ so it needs much effort to make it work.

Well, I'm thinking that I can emulate the irq by using a timer. A bad hack, but it ought to work as long as I can get the timing correct. This is for a compact flash interface.

Well, before doing such a big pile of shit, you should think seriously about making the HW person (provided it's not you) regret deeply his mistake :) Seriously, not wiring the IRQ line is _DUMB_ at best

Ben.