Re: changing a device's PCI INTA from level to edge?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bump! anyone? please.

On May 11, 2011, at 11:38 AM, Jean-Francois Dagenais wrote:

> Hi all, (easy question for Greg or other PCI gurus ;)
> 
> For development purposes, I needed a physical interrupt to interface the interrupt line of an I2C controller I am testing to my workstation. I use the i2c bus of the unused VGA connector and I plugged an old ethernet PCI card which I claim from a dummy PCI driver module which just does a pci_enable_device() on it. This way I can physically interface INTA pin on the PCI riser and hook it to the i2c chip I am testing. It works great!
> 
> Except, the PCI interrupt is "level, low" and the chip is edge based (falling or rising by register config). The driver is using threaded ISR handler so I added IRQF_ONESHOT to the request_threaded_isr to make things saner.
> 
> I am wondering if my dummy PCI driver could modify the PCI bridge or APIC (just throwing buzzwords here) so that the IRQ becomes "falling edge".
> 
> I tried doing irq_set_irq_type(17, IRQ_TYPE_EDGE_FALLING) before and after the pci_enable_device() call, but it doesn't seem to have any effect.
> 
> Ideas?

--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux