Deniz-Eren / dev-can-linux

Porting of Linux CAN-bus drivers to QNX
GNU General Public License v2.0
4 stars 1 forks source link

Multiple device IRQ support #4

Closed Deniz-Eren closed 8 months ago

Deniz-Eren commented 1 year ago

Currently the implementation in src/include/interrupt.h and src/interrupt.c only supports a single IRQ being allocated to the devices. If multiple IRQs are indicated by the OS the driver will exit with an error. In practice this scenario has not occured in emulation or during real hardware testing, however this needs to be made more general.

Error handler in src/pci.c must be removed when implementation made:

log_err("read multiple (%d) IRQs\n", nirq);
Deniz-Eren commented 8 months ago

Muliple IRQ support is now required as a result of MSI and MSI-X supported devices, see https://github.com/Deniz-Eren/dev-can-linux/issues/7 and https://github.com/Deniz-Eren/dev-can-linux/issues/19

Deniz-Eren commented 8 months ago

Multiple IRQ support has been implemented and rebased to pull request https://github.com/Deniz-Eren/dev-can-linux/pull/8.

Merging to main will be tracked in https://github.com/Deniz-Eren/dev-can-linux/issues/7